Debian Codegraph @

src/modules/ndb_cassandra/test-cpp/Makefile

raw
1 CC=gcc
2 CCC=g++
3 LD=g++
4 GEN_SRC=cassandra_constants.cpp cassandra_types.cpp Cassandra.cpp thrift_wrapper.cpp test.c
5
6 GEN_OBJ_C=$(patsubst %.c,%.o, $(GEN_SRC))
7 GEN_OBJ_CC=$(patsubst %.cpp,%.o, $(GEN_SRC))
8
9 INC=-I/usr/local/include/thrift -I/usr/local/include/
10 LIBS=-L/usr/local/lib -lthrift
11
12 CFLAGS=-Wall -Werror -g -ansi -pedantic -std=c89
13 CCFLAGS=-Wall -Werror -g
14 LDFLAGS=-g -Wall
15
16 PROG=test
17
18 all: $(PROG)
19 default: all
20
21 $(PROG): $(GEN_OBJ_C) $(GEN_OBJ_CC)
22 $(LD) $(LDFLAGS) *.o -o $(PROG) $(LIBS)
23
24 %.o: %.c
25 $(CC) $(CFLAGS) -o $@ -c $(INC) $< $(LIBS)
26
27 %.o: %.cpp
28 $(CCC) $(CCFLAGS) -o $@ -c $(INC) $< $(LIBS)
29
30 clean:
31 rm -f *.o
32 rm -f $(PROG)
33 rm -f *~