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

Last change on this file since 10366 was 4719, checked in by bird, 25 years ago

New makefile style. (addjustments)

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