forked from Macroassembler-AS/asl-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.os2
105 lines (76 loc) · 3.04 KB
/
Makefile.os2
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
include Makefile.def
CURRDIR=.\\
include makedefs.src
include objdefs.unix
include makedefs.files
ALLFLAGS = $(CFLAGS) -D$(CHARSET) -DSTDINCLUDES=\"$(INCDIR)\" -DLIBDIR=\"$(LIBDIR)\"
#---------------------------------------------------------------------------
# primary targets
all: $(ALLTARGETS)
docs: $(TEX2DOCTARGET) $(TEX2HTMLTARGET)
cd doc_DE & $(MAKE) TEX2DOC=..\$(TEX2DOCTARGET) TEX2HTML=..\$(TEX2HTMLTARGET) RM=del
cd doc_EN & $(MAKE) TEX2DOC=..\$(TEX2DOCTARGET) TEX2HTML=..\$(TEX2HTMLTARGET) RM=del
$(ASLTARGET): $(AS_OBJECTS) $(ASM_OBJECTS) $(ST_OBJECTS) $(CODE_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(ASLTARGET) $(ASM_OBJECTS) $(AS_OBJECTS) $(ST_OBJECTS) $(CODE_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(PLISTTARGET): $(PLIST_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(PLISTTARGET) $(PLIST_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(ALINKTARGET): $(ALINK_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(ALINKTARGET) $(ALINK_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(PBINDTARGET): $(PBIND_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(PBINDTARGET) $(PBIND_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(P2HEXTARGET): $(P2HEX_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(P2HEXTARGET) $(P2HEX_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(P2BINTARGET): $(P2BIN_OBJECTS) $(NLS_OBJECTS)
$(LD) -o $(P2BINTARGET) $(P2BIN_OBJECTS) $(NLS_OBJECTS) -lm $(LDFLAGS)
$(RESCOMPTARGET): $(RESCOMP_OBJECTS)
$(LD) -o $(RESCOMPTARGET) $(RESCOMP_OBJECTS) $(LDFLAGS)
$(TEX2DOCTARGET): $(TEX2DOC_OBJECTS)
$(LD) -o $(TEX2DOCTARGET) $(TEX2DOC_OBJECTS) $(LDFLAGS) -lm
$(TEX2HTMLTARGET): $(TEX2HTML_OBJECTS)
$(LD) -o $(TEX2HTMLTARGET) $(TEX2HTML_OBJECTS) $(LDFLAGS) -lm
$(UNUMLAUTTARGET): $(UNUMLAUT_OBJECTS)
$(LD) -o $(UNUMLAUTTARGET) $(UNUMLAUT_OBJECTS) $(LDFLAGS)
#---------------------------------------------------------------------------
# special rules for objects dependant on string resource files
include makedefs.str
#---------------------------------------------------------------------------
# supplementary targets
test: $(ALLTARGETS)
cd tests & copy t_secdrive\wd1003at.inc t_secdrive\lowlevel.inc & .\testall
install: $(ALLTARGETS)
.\install $(BINDIR) $(INCDIR) $(MANDIR) $(LIBDIR) $(DOCDIR)
clean:
-del $(ALLTARGETS)
-del $(TEX2DOCTARGET)
-del $(TEX2HTMLTARGET)
-del $(RESCOMPTARGET)
-del *$(HOST_OBJEXTENSION)
-del *$(TARG_OBJEXTENSION)
-del *.p
-del tests/testlog
-del testlog
-del *.rsc
cd doc_DE & $(MAKE) RM=del clean
cd doc_EN & $(MAKE) RM=del clean
#---------------------------------------------------------------------------
# create distributions
bindist: $(UNUMLAUTTARGET)
mkdir as & cmd /cinstall as\bin as\include as\man as\lib as\doc
cd as & zip -9 -r ..\as2$(VERSION) *
-del as\bin\* /n
-del as\include\* /n
-del as\man\* /n
-del as\lib /n
-del as\doc\* /n
-rmdir as\bin
-rmdir as\include
-rmdir as\man
-rmdir as\lib
-rmdir as\doc
-rmdir as
#---------------------------------------------------------------------------
# for my own use only...
#---------------------------------------------------------------------------
.SUFFIXES: .c
.c$(TARG_OBJEXTENSION):
$(CC) $(ALLFLAGS) -c $*.c