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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1185 - (hide annotations)
Wed Sep 17 20:20:38 2014 UTC (5 years, 8 months ago) by Jylam
File size: 644 byte(s)
Ignore all gcc warnings (-w) on compiler

1 Jylam 1125 CC=gcc
2 Jylam 1185 CFLAGS=-c -Iincludes -DPOSIX -w
3 Jylam 1125 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