File: Makefile

package info (click to toggle)
topal 81-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,216 kB
  • sloc: ada: 11,204; ansic: 783; sh: 174; makefile: 153
file content (25 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
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
.PHONY:	all clean realclean distclean distrib

executable := mime-tool
archive := mime-tool.tar.gz
components := GPL.txt Makefile mime.c $(executable).man \
	README.txt README.Topal.txt

include ../Buildflags.mk

all:	$(executable)

$(executable):	mime.c
		$(CC) $(default_CFLAGS) $(default_LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@

realclean distclean:	clean
	-$(RM) $(executable) $(archive)

clean:
	-$(RM) *~

distrib:	$(archive)

$(archive):	$(components)
	tar cvaf $@ $^