summaryrefslogtreecommitdiff
path: root/flower/Makefile
blob: 3e9a70ce15c656506105fa5cbe739664a9ca2bbf (about) (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
39
MAJVER=1
MINVER=0
PATCHLEVEL=6

PACKAGENAME=flower
VERSION=$(MAJVER).$(MINVER).$(PATCHLEVEL)
DNAME=$(PACKAGENAME)-$(VERSION)
DEFINES=-DNDEBUG -DNPRINT -O2
#DEFINES=-g
CXXFLAGS+=$(DEFINES)  -Wall -W -pedantic

include Sources.make

obs=$(cc:.cc=.o)
staticlib=libflower.a
$(staticlib): $(obs)
	$(AR) cr libflower.a $(obs)

include depend

depend: Sources.make
	$(CXX) -MM $(cc) > depend


clean:
	rm -f $(obs) $(staticlib)
realclean: clean
	rm -f depend
DFILES=$(hh) $(cc) $(inl) $(templatecc) Makefile Sources.make TODO
DDIR=$(DNAME)

dist:
	-mkdir $(DDIR)
	ln $(DFILES) $(DDIR)/
	tar cfz $(DNAME).tar.gz $(DDIR)/*
	rm -rf $(DDIR)/
TAGS:
	etags -CT $(inl) $(cc) $(hh)