Last change
on this file since 778 was
581,
checked in by laurent, 9 years ago
|
Adding ocean application, some mathematics functions and distributed locks
|
File size:
618 bytes
|
Rev | Line | |
---|
[581] | 1 | CC := gcc |
---|
| 2 | CFLAGS := $(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 |
---|
| 5 | LDFLAGS := $(LDFLAGS) -lm |
---|
| 6 | |
---|
| 7 | BASEDIR := $(PWD) |
---|
| 8 | MACROS := $(BASEDIR)/null_macros/c.m4.null.POSIX |
---|
| 9 | M4 := m4 -s -Ulen -Uindex |
---|
| 10 | |
---|
| 11 | .PHONY: clean |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | all: $(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 | |
---|
| 29 | clean: |
---|
| 30 | rm -rf *.c *.h *.o $(TARGET) |
---|
| 31 | |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.