source: trunk/tools/wrc/makefile@ 1036

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

NMAKE version of makefile.os2.

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