File: Makefile

package info (click to toggle)
tantan 40-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 508 kB
  • sloc: cpp: 2,480; sh: 61; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#CXXFLAGS = -msse4 -O3 -Wall -g

all: ../bin/tantan

CCSRCS = $(sort $(wildcard *.cc))
CCHDRS = $(sort $(wildcard *.hh))

../bin/tantan: $(CCSRCS) $(CCHDRS) version.hh Makefile
	mkdir -p ../bin
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(CCSRCS) -lz

clean:
	rm -f ../bin/tantan

VERSION1 = git describe --dirty
VERSION2 = echo ' (HEAD -> main, tag: 40) ' | sed -e 's/.*tag: *//' -e 's/[,) ].*//'

VERSION = \"`test -e ../.git && $(VERSION1) || $(VERSION2)`\"

version.hh: FORCE
	echo $(VERSION) | cmp -s $@ - || echo $(VERSION) > $@

FORCE: