CForms, by Lars Berntzon (Stockholm, Sweden), is a tool for building interactive forms-driven applic
源代码在线查看: makefile.src
# # M A K E F I L E # --------------- # # Description: # Compiles and links CForms # # @(#) Makefile.src,v 1.23 1993/07/21 01:14:59 lasse Exp # # By Lars Berntzon (lab@cap.se) # # # Installation places - modify theese four your system. # DEST = /usr/local DESTBIN = $(DEST)/bin DESTLIB = $(DEST)/lib DESTINC = $(DEST)/include # # Options to the compiler. # DEFINES = -g # # Don't ever edit theese lines. # @CC @CFLAGS @LATEX @LDFLAGS @CP @RANLIB @YACC SHELL = /bin/sh DIRS = src doc example lib pic_lib TARGET = install COMPILE.c = $(CC) -c $(CFLAGS) CLEAN = rcsclean MOPTS = "LDFLAGS=$(LDFLAGS)" \ "CC=$(CC)" \ "CFLAGS=$(CFLAGS)" \ "CP=$(CP)"\ "SHELL=$(SHELL)"\ "RANLIB=$(RANLIB)" \ "YACC=$(YACC)" \ "LATEX=$(LATEX)" default: src pic_lib @echo "Now you can try to do 'make example' and then run example/cforms" all: src pic_lib doc example src: phony (cd src; $(MAKE) $(MFLAGS) $(MOPTS) $(TARGET)) pic_lib: phony (cd pic_lib; $(MAKE) $(MFLAGS) $(MOPTS) $(TARGET)) doc: phony (cd doc; $(MAKE) $(MFLAGS) $(MOPTS) $(TARGET)) example: src pic_lib phony (cd example; $(MAKE) $(MFLAGS) $(MOPTS) $(TARGET)) install: src -$(CP) bin/* $(DESTBIN) -$(CP) include/* $(DESTINC) -$(CP) lib/* $(DESTLIB) depend: phony for i in $(DIRS); do (cd $$i; $(MAKE) $(MFLAGS) depend); done clean: phony for i in $(DIRS); do (cd $$i; $(MAKE) $(MFLAGS) clean); done rm -f bin/cfc bin/cfl veryclean: clean rm Makefile src/config.h rcsclean: phony for i in $(DIRS); do (cd $$i; $(CLEAN)); done $(CLEAN) export: phony tar cvf cforms.tar bin lib include `find . -type f ! -name RCS ! -name cforms.uu ! -name cforms.tar -print -o -name RCS -prune` compress cforms.tar uuencode cforms.tar.Z < cforms.tar.Z > cforms.uu rm cforms.tar.Z phony: