1997-01-02 23:03:04 -05:00
|
|
|
*** Makefile.orig Thu Jan 2 23:38:50 1997
|
|
|
|
--- Makefile Thu Jan 2 23:41:13 1997
|
1996-06-18 07:15:44 -04:00
|
|
|
***************
|
1997-01-02 23:03:04 -05:00
|
|
|
*** 3,24 ****
|
1996-06-18 07:15:44 -04:00
|
|
|
#
|
|
|
|
HOST= NETBSD
|
|
|
|
DEFINES=-D$(HOST) #-DDUMP_FUNCS
|
|
|
|
! DEBUG= -g -DDEBUG
|
|
|
|
CCFLAGS=$(DEFINES) $(DEBUG)
|
|
|
|
CFLAGS= -I. -Icomp -Ilex -Ied -Ikfun $(CCFLAGS)
|
|
|
|
! LDFLAGS=
|
|
|
|
! LIBS=
|
|
|
|
! CC= gcc
|
|
|
|
LD= $(CC)
|
|
|
|
DMAKE= make
|
|
|
|
BIN= ../bin
|
1997-01-02 23:03:04 -05:00
|
|
|
|
|
|
|
OBJ= alloc.o error.o hash.o swap.o str.o array.o object.o data.o path.o \
|
|
|
|
! editor.o comm.net.o call_out.o interpret.o config.o dgd.o
|
|
|
|
EDOBJ= alloc.o error.o
|
|
|
|
LEXOBJ= alloc.o hash.o
|
|
|
|
COMPOBJ=alloc.o error.o hash.o path.o str.o array.o object.o data.o \
|
|
|
|
! interpret.o config.o
|
|
|
|
|
|
|
|
a.out: $(OBJ) always
|
|
|
|
cd comp; $(MAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
|
|
|
|
--- 3,27 ----
|
1996-06-18 07:15:44 -04:00
|
|
|
#
|
|
|
|
HOST= NETBSD
|
|
|
|
DEFINES=-D$(HOST) #-DDUMP_FUNCS
|
|
|
|
! DEBUG=-O2
|
|
|
|
! #DEBUG= -g -DDEBUG
|
|
|
|
CCFLAGS=$(DEFINES) $(DEBUG)
|
|
|
|
CFLAGS= -I. -Icomp -Ilex -Ied -Ikfun $(CCFLAGS)
|
|
|
|
! LDFLAGS=-s
|
1997-01-02 23:03:04 -05:00
|
|
|
! LIBS=-lcrypt -lgnuregex
|
1996-06-18 07:15:44 -04:00
|
|
|
! CC= cc
|
|
|
|
LD= $(CC)
|
|
|
|
DMAKE= make
|
|
|
|
BIN= ../bin
|
1997-01-02 23:03:04 -05:00
|
|
|
|
|
|
|
OBJ= alloc.o error.o hash.o swap.o str.o array.o object.o data.o path.o \
|
|
|
|
! editor.o comm.net.o call_out.o interpret.o config.o dgd.o rgx.o
|
|
|
|
EDOBJ= alloc.o error.o
|
|
|
|
LEXOBJ= alloc.o hash.o
|
1996-06-18 07:15:44 -04:00
|
|
|
COMPOBJ=alloc.o error.o hash.o path.o str.o array.o object.o data.o \
|
1997-01-02 23:03:04 -05:00
|
|
|
! interpret.o config.o rgx.o
|
|
|
|
!
|
|
|
|
! all: a.out comp/a.out
|
1996-06-18 07:15:44 -04:00
|
|
|
|
|
|
|
a.out: $(OBJ) always
|
|
|
|
cd comp; $(MAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
|
|
|
|
***************
|
|
|
|
*** 38,44 ****
|
|
|
|
-mv $(BIN)/driver $(BIN)/driver.old
|
|
|
|
cp a.out $(BIN)/driver
|
|
|
|
|
|
|
|
! install: $(BIN)/driver
|
|
|
|
|
|
|
|
comp.sub: $(COMPOBJ)
|
|
|
|
@for i in $(COMPOBJ); do echo ../$$i; done > comp.sub
|
|
|
|
--- 41,51 ----
|
|
|
|
-mv $(BIN)/driver $(BIN)/driver.old
|
|
|
|
cp a.out $(BIN)/driver
|
|
|
|
|
|
|
|
! $(BIN)/precomp: comp/a.out
|
|
|
|
! -mv $(BIN)/precomp $(BIN)/precomp.old
|
|
|
|
! cp comp/a.out $(BIN)/precomp
|
|
|
|
!
|
|
|
|
! install: $(BIN)/driver $(BIN)/precomp
|
|
|
|
|
|
|
|
comp.sub: $(COMPOBJ)
|
|
|
|
@for i in $(COMPOBJ); do echo ../$$i; done > comp.sub
|
|
|
|
***************
|
|
|
|
*** 54,60 ****
|
|
|
|
|
|
|
|
comp/a.out:
|
|
|
|
cd comp; $(DMAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' \
|
|
|
|
! 'LIBS=$(LIBS)' a.out
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f a.out $(OBJ) comp.sub lex.sub ed.sub
|
|
|
|
--- 61,67 ----
|
|
|
|
|
|
|
|
comp/a.out:
|
|
|
|
cd comp; $(DMAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' \
|
|
|
|
! 'LDFLAGS=$(LDFLAGS)' 'LIBS=$(LIBS)' a.out
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f a.out $(OBJ) comp.sub lex.sub ed.sub
|
1997-01-02 23:03:04 -05:00
|
|
|
***************
|
|
|
|
*** 92,94 ****
|
|
|
|
--- 99,102 ----
|
|
|
|
call_out.o config.o dgd.o: call_out.h
|
|
|
|
error.o comm.o call_out.o config.o dgd.o: comm.h
|
|
|
|
config.o: version.h
|
|
|
|
+ rgx.o: str.h array.h rgx.h interpret.h
|