File: Makefile

package info (click to toggle)
jail 1.04-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 120 kB
  • ctags: 39
  • sloc: ansic: 201; makefile: 61; sh: 17
file content (41 lines) | stat: -rw-r--r-- 942 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Makefile for jail 1.04 (icmplog)
# 20-01-1998
# crab@wiw.org (Abhijit Menon-Sen)
#

CC      = gcc
CFLAGS  = -Wall -O2
CONF    = $(DESTDIR)/etc
VERSION = 1.04
INSTALL = /usr/bin/install
SBIN    = $(DESTDIR)/usr/sbin
MAN     = $(DESTDIR)/usr/man
DOCS    = README License INSTALL Changes CREDITS TODO icmplog.8
OTHER   = icmplog icmplog.h icmplog.c jail.lsm icmplog.conf Makefile

all: clean jail

jail: icmplog.c icmplog.h
	$(CC) $(CFLAGS) -o icmplog icmplog.c

dist: all
	-mkdir jail-$(VERSION)
	-cp $(DOCS) $(OTHER) jail-$(VERSION)
	tar czf jail-$(VERSION).tar.gz jail-$(VERSION)/*
	rm -rf jail-$(VERSION)

install: all
	$(INSTALL) -s icmplog $(SBIN)/icmplog
	-$(INSTALL) -m 0644 icmplog.8 $(MAN)/man8/icmplog.8
	-$(INSTALL) -m 0644 icmplog.conf $(CONF)/icmplog.conf

uninstall:
	-rm -f $(SBIN)/icmplog
	-rm -f $(MAN)/man8/icmplog.8
	-rm -f $(CONF)/icmplog.conf

.PHONY: clean

clean:
	-rm -f icmplog core *~
	-rm -f jail-$(VERSION).tar.gz