source: trunk/tools/wmc/makefile@ 10366

Last change on this file since 10366 was 10181, checked in by sandervl, 22 years ago

PF: Wine WMC port

File size: 1.8 KB
Line 
1# $Id: makefile,v 1.1 2003-07-28 11:23:46 sandervl Exp $
2
3#
4# WRC makefile.
5#
6# Note. If you wanna recompile everything you'll need flex and bison.
7# Both are found at hobbes.
8# AND you'll have to set env.var. HAVE_BISON and HAVE_FLEX.
9#
10
11
12#
13# Directory macro.
14#
15ODIN32_BIN = $(ODIN32_TOOLS)
16
17
18#
19# Tell buildenvironment that we're making an VIO .exe.
20# Tell buildenvironment that we like to use static linked CRT.
21# Tell buildenvironment that we should not copy this into /bin.
22#
23EXETARGET = 1
24VIO = 1
25STATIC_CRT = 1
26NO_MAIN_BIN_COPY = 1
27
28#
29# include common definitions
30#
31!include ../../makefile.inc
32
33
34#
35# Addjust common definitions
36#
37!if "$(CCENV)" == "EMX"
38CDEFINES = $(CDEFINES) -D__EMX__ -DMASM -D__SEMICOLON__
39!else
40CDEFINES = $(CDEFINES) -DMASM -D__SEMICOLON__ -DYY_USE_PROTOS
41!endif
42!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
43!ifdef DEBUG
44CFLAGS = $(CFLAGS) -O+ -Tm-
45!endif
46!endif
47
48
49YACC = bison
50YACCOPT = #-v
51LEX = flex
52
53
54#
55# Object extension.
56#
57OBJ = obj
58
59#
60# Object files. Prefix with OBJDIR and one space before the '\'.
61#
62OBJS=\
63$(OBJDIR)\lang.$(OBJ) \
64$(OBJDIR)\mcl.$(OBJ) \
65$(OBJDIR)\utils.$(OBJ) \
66$(OBJDIR)\wmc.$(OBJ) \
67$(OBJDIR)\write.$(OBJ) \
68$(OBJDIR)\y.tab.$(OBJ) \
69$(OBJDIR)\getopt.$(OBJ)
70
71
72#
73# Libraries. One space before the '\'.
74#
75LIBS = \
76$(ODIN32_LIB)/unicode.lib \
77$(RTLLIB) \
78os2386.lib
79
80
81#
82# Target name - name of the exe without extention and path.
83#
84TARGET = wmc
85
86
87#
88# Includes the common rules.
89#
90!include $(ODIN32_POST_INC)
91
92
93#
94# Needed tools
95#
96needed: all
97
98
99#
100# Extra rules.
101#
102!ifdef HAVE_BISON
103y.tab.c y.tab.h: mcy.y
104 $(YACC) -d -t mcy.y -o y.tab.c
105
106ppy.tab.c ppy.tab.h: ppy.y
107 $(YACC) $(YACCOPT) -bppy -ppp -d -t ppy.y -o ppy.tab.c
108!endif
109
110!ifdef HAVE_FLEX
111lexyy.c: parser.l
112 $(LEX) -8 -d parser.l
113
114lex.ppl.c: ppl.l
115 $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c ppl.l
116!endif
Note: See TracBrowser for help on using the repository browser.