home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-06-14 | 1.3 KB | 76 lines |
- CC=CC
- TEST=stest
- YFLAGS = -d
- .SUFFIXES: .o .c .y .l .s .C
-
- #
- # C++ rule
- #
- .C.o:
- $(CC) $(CFLAGS) -c $*.C
-
- .C.a:
- $(CC) -c $(CFLAGS) $<
- ar rv $@ $*.o
- rm -f $*.o
-
- SLIB=../../RJS/$(MACHINE)/libString.a
-
- TLIB=./libTest.a
-
- .PRECIOUS: $(TLIB)
-
- stest : main.o $(TLIB) $(SLIB)
- CC main.o $(TLIB) $(SLIB) -o $(TEST)
-
-
- qtest : qtest.C $(SLIB)
- CC -I../.. qtest.C $(SLIB) -o qtest
-
- $(TLIB) :\
- $(TLIB)(tScan.o) \
- $(TLIB)(tafter.o) \
- $(TLIB)(tappend.o) \
- $(TLIB)(tat.o) \
- $(TLIB)(tbefore.o) \
- $(TLIB)(tbetween.o) \
- $(TLIB)(tcase.o) \
- $(TLIB)(tconstructor.o) \
- $(TLIB)(tcontains.o) \
- $(TLIB)(texcept.o) \
- $(TLIB)(tfind.o) \
- $(TLIB)(tfrom.o) \
- $(TLIB)(tindex.o) \
- $(TLIB)(tinsert.o) \
- $(TLIB)(tleft.o) \
- $(TLIB)(tlower.o) \
- $(TLIB)(tmatch.o) \
- $(TLIB)(tmisc.o) \
- $(TLIB)(tmoveto.o) \
- $(TLIB)(top_div.o) \
- $(TLIB)(top_minus.o) \
- $(TLIB)(top_mult.o) \
- $(TLIB)(top_bracket.o) \
- $(TLIB)(top_equal.o) \
- $(TLIB)(top_paren.o) \
- $(TLIB)(top_plus.o) \
- $(TLIB)(tpad.o) \
- $(TLIB)(tpos.o) \
- $(TLIB)(tprepend.o) \
- $(TLIB)(trelational.o) \
- $(TLIB)(tremove.o) \
- $(TLIB)(treplace.o) \
- $(TLIB)(treverse.o) \
- $(TLIB)(tright.o) \
- $(TLIB)(tskip.o) \
- $(TLIB)(tsplit.o) \
- $(TLIB)(tsubstr.o) \
- $(TLIB)(tthrough.o) \
- $(TLIB)(ttrim.o) \
- $(TLIB)(ttrunc.o) \
- $(TLIB)(tupper.o)
- ranlib $(TLIB)
-
- clean :
- rm -f *.o $(TLIB) stest qtest core
-