1 | #
|
---|
2 | # Pre-include file for the main helpers makefile.
|
---|
3 | # This contains shared definitions and all the objects
|
---|
4 | # that have to be built.
|
---|
5 | #
|
---|
6 |
|
---|
7 | !ifndef PROJECT_BASE_DIR
|
---|
8 | !error in $(MAKEDIR)\makefile: PROJECT_BASE_DIR must be set before calling the HELPERS makefile. Terminating.
|
---|
9 | !endif
|
---|
10 |
|
---|
11 | !if [@echo $(MAKEDIR)\makefile: PROJECT_BASE_DIR is: $(PROJECT_BASE_DIR)]
|
---|
12 | !endif
|
---|
13 |
|
---|
14 | # include setup (compiler options etc.)
|
---|
15 | !include $(PROJECT_BASE_DIR)\setup.in
|
---|
16 |
|
---|
17 | !ifndef HELPERS_OUTPUT_DIR
|
---|
18 | !error in $(MAKEDIR)\makefile: HELPERS_OUTPUT_DIR must be set before calling the HELPERS makefile. Terminating.
|
---|
19 | !endif
|
---|
20 |
|
---|
21 | # Define the suffixes for files which NMAKE will work on.
|
---|
22 | # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for
|
---|
23 | # defining file extensions that NMAKE will recognize in inference
|
---|
24 | # rules.
|
---|
25 | .SUFFIXES: .c .h .ih .obj .lib .dll
|
---|
26 |
|
---|
27 | # OUTPUTDIR specifies the directory where we will put the
|
---|
28 | # files created by this makefile.
|
---|
29 | OUTPUTDIR = $(HELPERS_OUTPUT_DIR)
|
---|
30 |
|
---|
31 | !if [@echo $(MAKEDIR)\makefile: helpers OBJs will be written to $(OUTPUTDIR)]
|
---|
32 | !endif
|
---|
33 |
|
---|
34 | !if [@md $(OUTPUTDIR) 2> NUL]
|
---|
35 | !endif
|
---|
36 |
|
---|
37 | # The OBJS macro contains all the .OBJ files which need to be
|
---|
38 | # created from the files in SRC\MAIN _and_ SRC\HELPERS.
|
---|
39 | # These will be put into BIN\.
|
---|
40 |
|
---|
41 | PLAINCOBJS = \
|
---|
42 | $(OUTPUTDIR)\encodings.obj \
|
---|
43 | $(OUTPUTDIR)\linklist.obj \
|
---|
44 | $(OUTPUTDIR)\tree.obj \
|
---|
45 | $(OUTPUTDIR)\xml.obj \
|
---|
46 |
|
---|
47 | XMLOBJS = \
|
---|
48 | $(OUTPUTDIR)\xmlparse.obj \
|
---|
49 | $(OUTPUTDIR)\xmlrole.obj \
|
---|
50 | $(OUTPUTDIR)\xmltok.obj \
|
---|
51 |
|
---|
52 | CPOBJS = $(PLAINCOBJS) $(XMLOBJS) \
|
---|
53 | $(OUTPUTDIR)\datetime.obj \
|
---|
54 | $(OUTPUTDIR)\debug.obj \
|
---|
55 | $(OUTPUTDIR)\dosh.obj \
|
---|
56 | $(OUTPUTDIR)\dosh2.obj \
|
---|
57 | $(OUTPUTDIR)\eah.obj \
|
---|
58 | $(OUTPUTDIR)\except.obj \
|
---|
59 | $(OUTPUTDIR)\level.obj \
|
---|
60 | $(OUTPUTDIR)\procstat.obj \
|
---|
61 | $(OUTPUTDIR)\prfh.obj \
|
---|
62 | $(OUTPUTDIR)\prfh2.obj \
|
---|
63 | $(OUTPUTDIR)\resh.obj \
|
---|
64 | $(OUTPUTDIR)\stringh.obj \
|
---|
65 | $(OUTPUTDIR)\syssound.obj \
|
---|
66 | $(OUTPUTDIR)\tmsgfile.obj \
|
---|
67 | $(OUTPUTDIR)\wphandle.obj \
|
---|
68 | $(OUTPUTDIR)\xprf.obj \
|
---|
69 | $(OUTPUTDIR)\xprf2.obj \
|
---|
70 | $(OUTPUTDIR)\xstring.obj
|
---|
71 |
|
---|
72 | OBJS = $(CPOBJS) \
|
---|
73 | $(OUTPUTDIR)\animate.obj \
|
---|
74 | $(OUTPUTDIR)\cctl_chart.obj \
|
---|
75 | $(OUTPUTDIR)\cctl_checkcnr.obj \
|
---|
76 | $(OUTPUTDIR)\cctl_progbar.obj \
|
---|
77 | $(OUTPUTDIR)\cctl_splitwin.obj \
|
---|
78 | $(OUTPUTDIR)\cctl_tooltip.obj \
|
---|
79 | $(OUTPUTDIR)\comctl.obj \
|
---|
80 | $(OUTPUTDIR)\configsys.obj \
|
---|
81 | $(OUTPUTDIR)\cnrh.obj \
|
---|
82 | $(OUTPUTDIR)\gpih.obj \
|
---|
83 | $(OUTPUTDIR)\memdebug.obj \
|
---|
84 | $(OUTPUTDIR)\memdebug_win.obj \
|
---|
85 | $(OUTPUTDIR)\shapewin.obj \
|
---|
86 | $(OUTPUTDIR)\threads.obj \
|
---|
87 | $(OUTPUTDIR)\textview.obj \
|
---|
88 | $(OUTPUTDIR)\textv_html.obj \
|
---|
89 | $(OUTPUTDIR)\timer.obj \
|
---|
90 | $(OUTPUTDIR)\winh.obj
|
---|
91 |
|
---|
92 | # helpers include path
|
---|
93 | INC = ..\..\include
|
---|
94 | HLPINC = $(INC)\helpers
|
---|
95 |
|
---|
96 | PROJECTINC = $(PROJECT_BASE_DIR)\include
|
---|