source: trunk/src/pe2lx/makefile.wat@ 9

Last change on this file since 9 was 4, checked in by ktk, 26 years ago

Import

File size: 2.2 KB
Line 
1#===================================================================
2#
3# Setup the environment properly
4#
5#===================================================================
6PDWIN32_INCLUDE = ..\..\include
7PDWIN32_LIB = ..\..\lib
8PDWIN32_BIN = ..\..\bin
9INC = $(%WATCOM)\h;f:\toolkit\h;.;..\..\include;..\..\include\win
10DEF =
11!ifndef %RELEASE
12#DBGFLG = -dDEBUG=1
13DBGFLG =
14!endif
15
16#===================================================================
17#
18# Auto-dependency information
19#
20#===================================================================
21.ERASE
22.SUFFIXES:
23.SUFFIXES: .lst .obj .cpp .asm
24
25CFLAGS = -w4 -e25 -otexan -d2 -bm -ez -mf -i$(INC) -5r -bt=os2 -zq -D__WIN32OS2__ -D__PE2LX__
26CC = WPP386 $(CFLAGS) $(DEF)
27
28AFLAGS = -q
29ASM = WASM $(AFLAGS)
30
31DFLAGS = -l -s
32DIS = WDISASM $(DFLAGS)
33
34#LFLAGS = sys os2v2 pm op m d all op st=16384 op c op maxe=25 op q op symf
35LFLAGS = sys os2v2 op m d all op st=131072 op maxe=25 op q op symf
36QFLAGS = system os2 dll option quiet, map, align=512
37LINK = WLINK $(LFLAGS)
38
39BFLAGS = -s -t -c -b -q -n
40LIB = WLIB $(BFLAGS)
41
42.obj.lst:
43 $(DIS) $*
44
45.cpp.obj: .AUTODEPEND
46 $(CC) $*.cpp
47
48.asm.obj: .AUTODEPEND
49 $(ASM) $*.asm
50
51#===================================================================
52#
53# List of source files
54#
55#===================================================================
56FILE0 = pefile.obj pe.obj
57FILE2 = lx.obj icon.obj menu.obj dialog.obj misc.obj
58FILE3 = rcdata.obj icongrp.obj
59FILE4 = strings.obj bitmap.obj
60FILE5 = accelerator.obj
61FILE6 = cursor.obj cursorgrp.obj
62FILE7 =
63FILE8 =
64FILE9 =
65FILES = $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9)
66TARGET = PE2LX
67
68
69
70#===================================================================
71#
72# Specific dependencies
73#
74#===================================================================
75all: $(TARGET).EXE
76
77$(TARGET).lnk: makefile
78 @%write $^@ name $(TARGET).EXE
79 @for %f in ($(FILES)) do @%append $^@ file %f
80
81$(TARGET).exe: $(TARGET).lnk $(FILES)
82 $(LINK) @$(TARGET).lnk
83 copy $(TARGET).exe ..\..\bin
84
85# rc -i . -i d:\WATCOM\h -i d:\WATCOM\h\os2 gusmod.res ultimod.exe
Note: See TracBrowser for help on using the repository browser.