Makefile for Informix 4GL
Posted in 1992
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Would someone please post how to construct a Makefile for 4GL multi-part source programs? Here is my best shot. It works, but I can not figure out how to discard the builtin Make rules without calling 'make' from within the Makefile with the -r option. The Makeflags variable doesn't seem to do any good. -------------------------------------------------------------------- # # Makefile # # OBJECTS = wa_matsum.o wa_menu.o zaarl_r.o zaarl_c.o zaarl_l.o zaarl_d.o \\ wa_arfun.o z_arl_r1.o MAKEFLAGS=-r XFLAGS = CFLAGS = -O LIBS = /usr/lib/libelite.a all: make -r wa_menu.4ge wa_menu.4ge : $(OBJECTS) c4gl -o wa_menu.4ge $(XFLAGS) $(CFLAGS) $(OBJECTS) $(LIBS) clean: rm -f *.o *.c *.ec wa_menu log core .SUFFIXES: .o .4gl .4gl.o: c4gl -c $(XFLAGS) $(CFLAGS) $< -- Bruce Momjian | 830 Blythe Avenue root%candle.uucp@bts.com | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (215) 353-9879(w) + Christ can be your backup. | (215) 853-3000(h)