-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.dj
56 lines (42 loc) · 1.44 KB
/
Makefile.dj
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#-----------------------------------
# MultiMail Makefile (top) for DJGPP
#-----------------------------------
include version
# General options (passed to mmail/Makefile and interfac/Makefile):
# With debug:
#OPTS = -g -Wall -pedantic
# Optimized for recent versions of gcc:
OPTS = -O2 -fno-exceptions -fno-rtti -fconserve-space
#--------------------------------------------------------------
# DJGPP (MSDOS), with PDCurses:
CURS_DIR = /pdcurses
CURS_LIB = .
LIBS = /pdcurses/dos/pdcurses.a
RM = del
SEP = ;
# Optional; attach pmode stub:
POST = $(RM) mm.exe $(SEP) strip mm $(SEP) copy /b \
\djgpp\bin\pmodstub.exe+mm mm.exe $(SEP) $(RM) mm
#--------------------------------------------------------------
#--------------------------------------------------------------
all: mm
mm-main:
cd mmail $(SEP) $(MAKE) MM_MAJOR="$(MM_MAJOR)" \
MM_MINOR="$(MM_MINOR)" OPTS="$(OPTS)" mm-main $(SEP) cd ..
intrfc:
cd interfac $(SEP) $(MAKE) MM_MAJOR="$(MM_MAJOR)" \
MM_MINOR="$(MM_MINOR)" OPTS="$(OPTS)" \
CURS_DIR="$(CURS_DIR)" intrfc $(SEP) cd ..
mm: mm-main intrfc
$(CXX) -o mm mmail/*.o interfac/*.o -L$(CURS_LIB) $(LIBS)
$(POST)
dep:
cd interfac $(SEP) $(MAKE) CURS_DIR="$(CURS_DIR)" dep $(SEP) cd ..
cd mmail $(SEP) $(MAKE) dep $(SEP) cd ..
clean:
cd interfac $(SEP) $(MAKE) RM="$(RM)" clean $(SEP) cd ..
cd mmail $(SEP) $(MAKE) RM="$(RM)" clean $(SEP) cd ..
$(RM) mm
$(RM) mm.exe
modclean:
cd mmail $(SEP) $(MAKE) RM="$(RM)" modclean $(SEP) cd ..