-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile.djg
37 lines (27 loc) · 1.01 KB
/
makefile.djg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id$
# Makefile to build SQPACK/dpmi with gcc 3.x.x from DJGPP v2.03.
# No support for the Husky build environment.
# include Husky-Makefile-Config,
# copy this file from ../../huskybse/huskymak.cfg.djg
include ../huskybse/huskymak.cfg.djg
include makefile.inc
# includes directories
CINCL= -I$(H_DIR) -I../huskylib -I../smapi -I../fidoconf
# libraries need to build binary file
LIBS = ../fidoconf/make/$(LIBPREFIX)fconf$(LIBSUFFIX)$(_LIB) \
../smapi/make/$(LIBPREFIX)smapi$(LIBSUFFIX)$(_LIB) \
../huskylib/make/$(LIBPREFIX)husky$(LIBSUFFIX)$(_LIB)
READMEFILES= ./ChangeLog ./VERSION ./HISTORY ./BUGS ./INSTALL ./COPYING
default:
@echo
@echo Run \'make programs\' to build static version of programs \($(PROGRAMS)\)
@echo
@echo Run \'make all\' to build all above
all: programs
programs: $(PROGRAMS)
%$(_OBJ): $(SRC_DIR)%$(_C)
@echo Compiling $<
@$(CC) $(CFLAGS) $(CDEFS) $(CINCL) $(OPTCFLAGS) $<
$(PROGRAMS): $(OBJS)
@echo Create $(PROGRAMS)
@$(CC) $(CFLAGS) $(CDEFS) $(CINCL) $(EXENAMEFLAG) $@ $< $(LIBS)