source: trunk/tools/wrc/makefile.os2@ 905

Last change on this file since 905 was 905, checked in by bird, 26 years ago

Added define WIN32OS2.
clean will not delete the bison and flex generated source files, since
these are(/will become) a part of the CVS tree.

File size: 718 bytes
Line 
1DEFS = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include
2
3PROGRAMS = wrc.exe
4MODULE = none
5
6OBJS = \
7 dumpres.o \
8 genres.o \
9 newstruc.o \
10 preproc.o \
11 readres.o \
12 utils.o \
13 wrc.o \
14 y.tab.o \
15 lexyy.o \
16 writeres.o
17
18EXTRA_SRCS = parser.y parser.l
19EXTRA_OBJS = y.tab.o lex.yy.o
20
21all: $(PROGRAMS)
22
23CC = gcc
24#CFLAGS_G = -Wall
25YACC=bison
26LEX=flex
27
28.SUFFIXES :
29
30.SUFFIXES : .c .o
31
32%.o : %.c
33 $(CC) $(CFLAGS_G) $(DEFS) -c $< -o $@
34
35wrc.exe: lexyy.c y.tab.c $(OBJS)
36 $(CC) $(CFLAGS) -o $@ $(OBJS)
37 copy $@ ..\bin
38
39y.tab.c y.tab.h: parser.y
40 $(YACC) -d -t parser.y -o y.tab.c
41
42lexyy.c: parser.l
43 $(LEX) -8 parser.l
44
45clean::
46 $(RM) *.o *.exe
47# $(RM) y.tab.c y.tab.h lexyy.c *.o *.exe
48
Note: See TracBrowser for help on using the repository browser.