Line | |
---|
1 | # $Id: makefile.os2,v 1.12 2000-12-02 23:27:03 bird Exp $
|
---|
2 |
|
---|
3 |
|
---|
4 | ODIN32_TOOLS = ..\bin
|
---|
5 | ODIN32_INCLUDE = ..\..\include
|
---|
6 | !include $(ODIN32_INCLUDE)\odin32.tools.mk
|
---|
7 |
|
---|
8 |
|
---|
9 | #DEFS = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include
|
---|
10 | DEFS = -D__WINE__ -D__SEMICOLON__ -I. -I../../include/win -I../../include
|
---|
11 |
|
---|
12 | PROGRAMS = wrc.exe
|
---|
13 | MODULE = none
|
---|
14 |
|
---|
15 | OBJS = \
|
---|
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 |
|
---|
27 | EXTRA_SRCS = parser.y parser.l
|
---|
28 | EXTRA_OBJS = y.tab.o lex.yy.o
|
---|
29 |
|
---|
30 | all: $(PROGRAMS)
|
---|
31 |
|
---|
32 | CC = gcc
|
---|
33 | #CFLAGS_G = -Wall
|
---|
34 | YACC=bison
|
---|
35 | LEX=flex
|
---|
36 |
|
---|
37 | .SUFFIXES :
|
---|
38 |
|
---|
39 | .SUFFIXES : .c .o
|
---|
40 |
|
---|
41 | .c.o :
|
---|
42 | $(CC) $(CFLAGS_G) $(DEFS) -c $< -o $@
|
---|
43 |
|
---|
44 | wrc.exe: lexyy.c y.tab.c $(OBJS)
|
---|
45 | $(CC) $(CFLAGS) -o $@ $(OBJS)
|
---|
46 | copy $@ ..\bin
|
---|
47 |
|
---|
48 | y.tab.c y.tab.h: parser.y
|
---|
49 | $(YACC) -d -t parser.y -o y.tab.c
|
---|
50 |
|
---|
51 | lexyy.c: parser.l
|
---|
52 | $(LEX) -8 parser.l
|
---|
53 |
|
---|
54 |
|
---|
55 | dep:
|
---|
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 |
|
---|
60 | clean:
|
---|
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.