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

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

New makefile style.

File size: 1.4 KB
Line 
1# $Id: makefile.os2,v 1.12 2000-12-02 23:27:03 bird Exp $
2
3
4ODIN32_TOOLS = ..\bin
5ODIN32_INCLUDE = ..\..\include
6!include $(ODIN32_INCLUDE)\odin32.tools.mk
7
8
9#DEFS = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include
10DEFS = -D__WINE__ -D__SEMICOLON__ -I. -I../../include/win -I../../include
11
12PROGRAMS = wrc.exe
13MODULE = none
14
15OBJS = \
16 dumpres.o \
17 genres.o \
18 newstruc.o \
19 preproc.o \
20 readres.o \
21 utils.o \
22 wrc.o \
23 y.tab.o \
24 lexyy.o \
25 writeres.o
26
27EXTRA_SRCS = parser.y parser.l
28EXTRA_OBJS = y.tab.o lex.yy.o
29
30all: $(PROGRAMS)
31
32CC = gcc
33#CFLAGS_G = -Wall
34YACC=bison
35LEX=flex
36
37.SUFFIXES :
38
39.SUFFIXES : .c .o
40
41.c.o :
42 $(CC) $(CFLAGS_G) $(DEFS) -c $< -o $@
43
44wrc.exe: lexyy.c y.tab.c $(OBJS)
45 $(CC) $(CFLAGS) -o $@ $(OBJS)
46 copy $@ ..\bin
47
48y.tab.c y.tab.h: parser.y
49 $(YACC) -d -t parser.y -o y.tab.c
50
51lexyy.c: parser.l
52 $(LEX) -8 parser.l
53
54
55dep:
56 $(DEPEND) -I../../include/win -I../../include -I$(C_INCLUDE_PATH) \
57 *.h *.asm *.inc $(ODIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp
58
59
60clean:
61 rm -f *.o *.exe
62# $(RM) y.tab.c y.tab.h lexyy.c *.o *.exe
63
64#
65# Include the .depend file.
66# If the depend file don't exists we'll complain about it.
67#
68!ifndef NODEP
69! if [$(EXISTS) .depend] == 0
70! include .depend
71! else
72! if [$(ECHO) .depend doesn't exist]
73! endif
74! endif
75!endif
76
Note: See TracBrowser for help on using the repository browser.