/[projet1]/public/pc/tools/osdk/main/compiler/Makefile
Defence Force logotype

Contents of /public/pc/tools/osdk/main/compiler/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1133 - (show annotations)
Sun May 11 10:05:08 2014 UTC (5 years, 6 months ago) by Jylam
File size: 647 byte(s)
Defined POSIX in the Makefile and modified c.h accordingly

1 CC=gcc
2 CFLAGS=-c -Wall -Iincludes -DPOSIX
3 LDFLAGS=
4 SOURCES=sources/dag.c \
5 sources/debug.c \
6 sources/decl.c \
7 sources/enode.c \
8 sources/error.c \
9 sources/expr.c \
10 sources/gen.c \
11 sources/init.c \
12 sources/input.c \
13 sources/lex.c \
14 sources/main.c \
15 sources/output.c \
16 sources/profio.c \
17 sources/simp.c \
18 sources/stmt.c \
19 sources/string.c \
20 sources/sym.c \
21 sources/tree.c \
22 sources/types.c
23
24 OBJECTS=$(SOURCES:.c=.o)
25 EXECUTABLE=compiler
26
27 all: $(SOURCES) $(EXECUTABLE)
28
29 $(EXECUTABLE): $(OBJECTS)
30 $(CC) $(LDFLAGS) $(OBJECTS) -o $@
31 clean:
32 rm -f $(EXECUTABLE) $(OBJECTS)
33 .c.o:
34 $(CC) $(CFLAGS) $< -o $@
35

  ViewVC Help
Powered by ViewVC 1.1.26