home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-12-06 | 2.3 KB | 134 lines |
- #$Header$
- #
- #
- #
- #
- #
- .SILENT:
-
- CC1=lc1
- CC2=go
- CC3=lc2
- C1FLAGS = -j85i -d3
- C2FLAGS =
- C3FLAGS =
-
- #.c.o:
- # $(CC1) -. $(C1FLAGS) $(CFLAGS) -oQUAD: $*
- # $(CC2) -. $(C2FLAGS) QUAD:$*.q
- # $(CC3) -. $(C3FLAGS) -o$*.o QUAD:$*.q
- #
- .c.o:
- $(CC1) -. $(C1FLAGS) $(CFLAGS) -oQUAD: $*
- $(CC3) -. $(C3FLAGS) -o$*.o QUAD:$*.q
- #
- #
-
- RCSDIR = RCS:
-
- DIFF = ${RCSDIR}diff
- DIFF3 = ${RCSDIR}diff3
- ED = ${RCSDIR}ked
-
- OS = -dAMIGA
- ARGS = -dSTDARGS
-
- SIGNAL_TYPE = void
-
- LOCKING = 1
-
- LDFLAGS = quiet batch nodebug
- LDLIBS = LIB:rsbx.lib LIB:lc.lib LIB:amiga.lib
-
- DEFINES = $(OS) $(ARGS) -dSIGNAL_TYPE=$(SIGNAL_TYPE) -dSTRICT_LOCKING=$(LOCKING
- -dED="$(ED)" -dDIFF="$(DIFF)" -dDIFF3="$(DIFF3)" -dCO="${RCSDIR}co" -dMERGE="${
- CSDIR}merge"
- CFLAGS = $(DEFINES)
-
- TARGETS = diff diff3
-
-
-
-
- all: $(TARGETS)
-
-
- install:
- copy diff to RCS:
- copy diff3 to RCS:
-
-
- clean:
- -delete \#?.o
- -delete $(TARGETS)
- -delete \#?.tmp
-
-
- DIFFOBJ = analyze.o context.o diff.o ed.o io.o normal.o regex.o util.o getopt.o
- dir.o ndir.o amiga1.o
- DIFFSRC = analyze.c context.c diff.c ed.c io.c normal.c regex.c util.c getopt.c
- dir.c ndir.c amiga1.c
- diff: $(DIFFOBJ) $(LDLIBS)
- -delete $@
- ${LD} $(LDFLAGS) TO $@.tmp FROM LIB:xc.o $(DIFFOBJ) LIB $(LDLIBS)
- rename $@.tmp $@
-
-
- DIFF3OBJ = diff3.o getopt.o
- DIFF3SRC = diff3.c getopt.c
- diff3: $(DIFF3OBJ) $(LDLIBS)
- -delete $@
- ${LD} $(LDFLAGS) TO $@.tmp FROM LIB:xc.o $(DIFF3OBJ) LIB $(LDLIBS)
- rename $@.tmp $@
-
-
- SOURCE= analyze.c context.c diff.c diff3.c dir.c ed.c getopt.c io.c ndir.c norm
- l.c regex.c util.c \
- amiga1.c
-
-
- HFILES= diff.h dir.h limits.h regex.h stat.h
-
- depend: ${SOURCE} ${HFILES}
- (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
- cc -Em ${CFLAGS} ${SOURCE} | sed 's/\.\///; /\//d' \
- ) >Makefile.new
- cp Makefile Makefile.bak
- cp Makefile.new Makefile
- rm -f Makefile.new
-
-
- # DO NOT DELETE THIS LINE -
- analyze.o: analyze.c
- analyze.o: regex.h
- analyze.o: diff.h
- context.o: context.c
- context.o: diff.h
- context.o: regex.h
- diff.o: diff.c
- diff.o: regex.h
- diff.o: diff.h
- diff3.o: diff3.c
- dir.o: dir.c
- dir.o: diff.h
- dir.o: regex.h
- ed.o: ed.c
- ed.o: diff.h
- ed.o: regex.h
- getopt.o: getopt.c
- io.o: io.c
- io.o: diff.h
- io.o: regex.h
- ndir.o: ndir.c
- ndir.o: dir.h
- normal.o: normal.c
- normal.o: diff.h
- normal.o: regex.h
- regex.o: regex.c
- regex.o: regex.h
- util.o: util.c
- util.o: diff.h
- util.o: regex.h
- amiga1.o: amiga1.c
- amiga1.o: stat.h
-