File: Makefile

package info (click to toggle)
flog 1.8-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 44 kB
  • ctags: 32
  • sloc: ansic: 234; makefile: 41
file content (25 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
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

VERSION = 1.8
DIST = flog-$(VERSION)
DEBUG = -g
CFLAGS = -O2 $(DEBUG) -Wall -pedantic -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1
#CC = gcc

flog: flog.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -rf *.o flog $(DIST) $(DIST).tar.gz *~

dist: $(DIST).tar.gz

$(DIST): README Makefile flog.c
	mkdir $(DIST)
	tar c $^ | (cd $(DIST); tar x)

$(DIST).tar.gz: $(DIST)
	tar czf $@ $^
	rm -rf $(DIST)