source: soft/giet_vm/applications/ocean/Makefile.config.natif @ 697

Last change on this file since 697 was 581, checked in by laurent, 9 years ago

Adding ocean application, some mathematics functions and distributed locks

File size: 618 bytes
RevLine 
[581]1CC := gcc
2CFLAGS := $(CFLAGS) -O0 -pthread -D_POSIX_C_SOURCE=200112 -g -Wall -W -Wmissing-prototypes \
3        -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization \
4        -Winline -Wpointer-arith -Wsign-compare -Wendif-labels
5LDFLAGS := $(LDFLAGS) -lm
6
7BASEDIR := $(PWD)
8MACROS := $(BASEDIR)/null_macros/c.m4.null.POSIX
9M4 := m4 -s -Ulen -Uindex
10
11.PHONY: clean
12
13
14all: $(TARGET)
15
16$(TARGET): $(OBJS)
17        $(CC) $(OBJS) $(CFLAGS) -o $(TARGET) $(LDFLAGS)
18
19
20%.h: %.H $(MACROS)
21        $(M4) $(MACROS) $< > $@
22
23%.c: %.C $(MACROS)
24        $(M4) $(MACROS) $< > $@
25
26%.o: %.c
27        $(CC) -c $(CFLAGS) -o $@ $<
28
29clean:
30        rm -rf *.c *.h *.o $(TARGET)
31
32
Note: See TracBrowser for help on using the repository browser.