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