File: Makefile

package info (click to toggle)
fiche 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 148 kB
  • sloc: ansic: 464; python: 29; makefile: 21
file content (18 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# for debug add -g -O0 to line below
CFLAGS+=-pthread -O2 -Wall -Wextra -Wpedantic -Wstrict-overflow -fno-strict-aliasing -std=gnu11 -g -O0
prefix=$(DESTDIR)/usr/bin
manloc=$(DESTDIR)/usr/share/man/man1

all:
	${CC} main.c fiche.c $(CFLAGS) -o fiche

install: fiche
	install -m 0755 -d $(prefix)
	install -m 0755 fiche $(prefix)
	install -m 0755 -d $(manloc)
	install -m 0755 debian/fiche.1 $(manloc)

clean:
	rm -f fiche

.PHONY: clean