summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/Makefile
blob: 1d1391ae44558cbbcdfa746d0e3d090490e029a8 (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
-include makefile.darwin

local_objs = ../obj/corpus.o ../obj/gzstream.o ../obj/mt19937ar.o ../obj/pyp-topics.o ../obj/gammadist.o

all: ../bin/pyp-topics-train

-include makefile.depend

#-----------------------#
# Local stuff
#-----------------------#

../bin/pyp-topics-train: ../obj/train.o $(local_objs)
	$(CXX) -o $@ $^ $(LDFLAGS)

../obj/%.o: %.cc
	${CXX} $(CXXFLAGS) -c $< -o $@

../obj/%.o: %.c
	${CC} $(CFLAGS) -c $< -o $@

.PHONY: depend
depend:
	$(CXX) -MM $(CXXFLAGS) *.cc | sed 's/^\(.*\.o:\)/obj\/\1/' > makefile.depend

clean:
	rm -f ../obj/*.o

#clobber: clean
#	rm makefile.depend ../bin/${ARCH}/*