1# $Id$ 2# Makefile to build HPTKILL/OS2 with gcc 3.x.x from EMX v0.9d. 3# No support for the Husky build environment. 4 5# include Husky-Makefile-Config, 6# copy this file from ../../huskybse/huskymak.cfg.emx 7include ../../huskymak.cfg 8 9include makefile.inc 10 11# includes directories 12CINCL= -I$(H_DIR) -I../../huskylib -I../../smapi -I../../fidoconf 13 14# libraries need to build binary file 15LIBS = ../../fidoconf/make/$(LIBPREFIX)fidoconfig$(LIBSUFFIX)$(_LIB) \ 16 ../../smapi/make/$(LIBPREFIX)smapi$(LIBSUFFIX)$(_LIB) \ 17 ../../huskylib/make/$(LIBPREFIX)husky$(LIBSUFFIX)$(_LIB) 18 19READMEFILES= ../ChangeLog ../VERSION ../HISTORY 20 21default: 22 @echo Run 'make programs' to build static version of programs ($(PROGRAMS)) 23 @echo Run 'make all' to build all above 24 25all: programs 26 27programs: $(PROGRAMS) 28 29%$(_OBJ): $(_SRC_DIR)%$(_C) 30 @echo Compiling $< 31 @$(CC) $(CFLAGS) $(CDEFS) $(CINCL) $(OPTCFLAGS) $< 32 33$(PROGRAMS): $(OBJS) 34 @echo Create $(PROGRAMS) 35 @$(CC) $(STRIP) $(CFLAGS) $(CDEFS) $(CINCL) $(EXENAMEFLAG) $@ $^ $(LIBS) 36