Author: kjs
Date: Sat Mar 24 04:50:16 2007
New Revision: 17706
Added:
trunk/config/gen/makefiles/pirc.in
Modified:
trunk/config/gen/makefiles.pm
Log:
compilers/pirc:
* added rule for config/gen/makefiles/pirc.in to config/gen/makefiles.pm
* added config/gen/makefiles/pirc.in
Modified: trunk/config/gen/makefiles.pm
==============================================================================
--- trunk/config/gen/makefiles.pm (original)
+++ trunk/config/gen/makefiles.pm Sat Mar 24 04:50:16 2007
@@ -79,6 +79,7 @@
genfile( 'config/gen/makefiles/tge.in' => 'compilers/tge/Makefile' );
genfile( 'config/gen/makefiles/bcg.in' => 'compilers/bcg/Makefile' );
genfile( 'config/gen/makefiles/json.in' => 'compilers/json/Makefile'
);
+ genfile( 'config/gen/makefiles/pirc.in' => 'compilers/pirc/Makefile'
);
genfile( 'config/gen/makefiles/dynpmc.in' => 'src/dynpmc/Makefile' );
genfile( 'config/gen/makefiles/dynoplibs.in' => 'src/dynoplibs/Makefile' );
genfile( 'config/gen/makefiles/editor.in' => 'editor/Makefile' );
Added: trunk/config/gen/makefiles/pirc.in
==============================================================================
--- (empty file)
+++ trunk/config/gen/makefiles/pirc.in Sat Mar 24 04:50:16 2007
@@ -0,0 +1,73 @@
+
+
+# Setup some commands
+LN_S = @lns@
+PERL = @perl@
+RM_RF = @rm_rf@
+PARROT = ../../[EMAIL PROTECTED]@
+TOOL_DIR = ../..
+CC = @cc@
+CP = @cp@
+BUILD = $(PERL) @build_dir@/tools/build/dynpmc.pl
+O = @o@
+EXE = @exe@
+
+
+
+
+# the default target
+all: pirc
+
+
+SOURCES = src/pirmain.c \
+ src/pirparser.c \
+ src/pirparser.h \
+ src/pirlexer.c \
+ src/pirlexer.h
+
+
+
+pirc: pirmain$(O) pirparser$(O) pirlexer$(O)
+ $(CC) pirmain$(O) pirparser$(O) pirlexer$(O)
+
+pirmain.$(O): src/pirmain.c src/pirparser.h
+ $(CC) $(FLAGS) src/pirmain.c
+
+pirparser.$(O): src/pirparser.c src/pirparser.h src/pirlexer.h
+ $(CC) $(FLAGS) src/pirparser.c
+
+pirlexer.$(O): src/pirlexer.c src/pirlexer.h
+ $(CC) $(FLAGS) src/pirlexer.c
+
+
+# This is a listing of all targets, that are meant to be called by users
+help:
+ @echo ""
+ @echo "Following targets are available for the user:"
+ @echo ""
+ @echo " all: pirc"
+ @echo " This is the default."
+# @echo "Testing:"
+# @echo " test: Run the test suite."
+# @echo " testclean: Clean up test results."
+# @echo ""
+ @echo "Cleaning:"
+ @echo " clean: Basic cleaning up."
+ @echo " realclean: Removes also files generated by
'Configure.pl'"
+ @echo " distclean: Removes also anything built, in theory"
+ @echo ""
+ @echo "Misc:"
+ @echo " help: Print this help message."
+ @echo ""
+
+
+
+clean:
+ $(RM_RF) *$(O)
+
+
+realclean: clean
+ $(RM_RF) Makefile
+ $(RM_RF) pirc$(EXE)
+
+distclean: realclean