blob: 0b5a803b9b05f9dced8ed649e55664032d44eea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
vpath %.c $(SPATH)
vpath %.cc $(SPATH)
vpath %.cpp $(SPATH)
AR = ar rcs
CC = gcc
CXX = g++
RM = rm -f
LD = g++
HAVES += -DHAVE_VSSCANF -DHAVE_FCNTL -DHAVE_UNISTD_H -DHAVE_FORK -DHAVE_PIPE -DHAVE_FSYNC -DHAVE_MALLOC_H -DHAVE_ASPRINTF -DHAVE_BYTESWAP_H
DEBUG_FLAGS = -g -D_DEBUG
RELEASE_FLAGS = -O3 -fno-strict-aliasing -DNDEBUG
CPPFLAGS += -Wall -I../externals/Base/include -I../Utils
CPPFLAGS += -DWORDS_LITTLEENDIAN
CPPFLAGS += $(HAVES)
CPPFLAGS += $(DEBUG_FLAGS)
OBJS = $(addsuffix .o, $(notdir $(basename $(SRCS))))
DEPS = $(addsuffix .dep, $(notdir $(basename $(SRCS))))
all: dep $(TARGET)
dep: $(DEPS)
clean:
$(RM) $(OBJS) $(DEPS) $(TARGET)
%.dep : %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -M -MF $@ $<
%.dep : %.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -M -MF $@ $<
%.dep : %.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -M -MF $@ $<
|