2002-05-20 19:01:51 +00:00
|
|
|
$FreeBSD$
|
|
|
|
|
2002-08-26 16:31:07 +00:00
|
|
|
--- Makefile.orig Mon Aug 26 07:21:20 2002
|
|
|
|
+++ Makefile Mon Aug 26 09:24:19 2002
|
2001-05-06 05:18:27 +00:00
|
|
|
@@ -3,13 +3,12 @@
|
|
|
|
#
|
|
|
|
HOST= NETBSD
|
|
|
|
DEFINES=-D$(HOST) #-DDUMP_FUNCS
|
|
|
|
-DEBUG= -O2
|
|
|
|
CCFLAGS=$(DEFINES) $(DEBUG)
|
|
|
|
-CFLAGS= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)
|
|
|
|
+CFLAGS+= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)
|
|
|
|
LDFLAGS=
|
|
|
|
LIBS=
|
|
|
|
LINTFLAGS=-abcehpruz
|
|
|
|
-CC= gcc
|
|
|
|
+CC?= gcc
|
|
|
|
LD= $(CC)
|
|
|
|
DMAKE= make
|
2002-08-26 16:31:07 +00:00
|
|
|
YACC= yacc
|
|
|
|
@@ -22,6 +21,8 @@
|
2001-05-06 05:18:27 +00:00
|
|
|
COMPOBJ=alloc.o error.o hash.o path.o str.o array.o object.o data.o \
|
|
|
|
interpret.o config.o
|
|
|
|
|
|
|
|
+all: a.out comp/a.out
|
|
|
|
+
|
|
|
|
a.out: $(OBJ) always
|
2002-08-26 16:31:07 +00:00
|
|
|
cd comp; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' 'YACC=$(YACC)' dgd
|
2001-05-06 05:18:27 +00:00
|
|
|
cd lex; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
|
2002-08-26 16:31:07 +00:00
|
|
|
@@ -39,10 +40,15 @@
|
2002-05-20 19:01:51 +00:00
|
|
|
@rm -f a.out
|
|
|
|
|
|
|
|
$(BIN)/driver: a.out
|
|
|
|
+ -mkdir $(BIN)
|
2001-05-06 05:18:27 +00:00
|
|
|
-mv $(BIN)/driver $(BIN)/driver.old
|
|
|
|
cp a.out $(BIN)/driver
|
|
|
|
|
|
|
|
-install: $(BIN)/driver
|
|
|
|
+$(BIN)/precomp: comp/a.out
|
|
|
|
+ -mv $(BIN)/precomp $(BIN)/precomp.old
|
|
|
|
+ cp comp/a.out $(BIN)/precomp
|
|
|
|
+
|
|
|
|
+install: $(BIN)/driver $(BIN)/precomp
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint $(LINTFLAGS) $(CFLAGS) $(SRC)
|
2002-08-26 16:31:07 +00:00
|
|
|
@@ -68,7 +74,8 @@
|
2001-05-06 05:18:27 +00:00
|
|
|
|
|
|
|
comp/a.out:
|
|
|
|
cd comp; $(DMAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' \
|
2002-08-26 16:31:07 +00:00
|
|
|
- 'YACC=$(YACC)' 'LIBS=$(LIBS)' a.out
|
|
|
|
+ 'LDFLAGS=$(LDFLAGS)' 'YACC=$(YACC)' 'LIBS=$(LIBS)' \
|
|
|
|
+ a.out
|
2001-05-06 05:18:27 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f a.out $(OBJ) comp.sub lex.sub ed.sub
|