File: Makefile

package info (click to toggle)
iptstate 1.3-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 92 kB
  • ctags: 41
  • sloc: cpp: 469; makefile: 87
file content (62 lines) | stat: -rw-r--r-- 1,701 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Copyright (C) 2002 - 2003 Phil Dibowitz.
#
# See iptstate.cc for copyright info
#
# Makefile for IPTState verion 1.3
#

### USERS CAN CHANGE STUFF HERE

PREFIX=/usr
SBIN=$(PREFIX)/sbin
INSTALL=/usr/bin/install
MAN=$(PREFIX)/share/man

### YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE

CXX = g++
CXXFLAGS = -g -Wall -Wno-deprecated
CXXFILES = iptstate.cc
LIBS= -lncurses


all:	iptstate


iptstate:	iptstate.cc
	@echo "+------------------------------------------------------------+"
	@echo "| Welcome to IP Tables State by Phil Dibowitz                |"
	@echo "|                                                            |"
	@echo "| PLEASE read the LICENSE and the README for important info. |"
	@echo "|                                                            |"
	@echo "| You may also wish to read the README for install info,     |"
	@echo "| the WISHLIST for upcoming features, BUGS for known bugs    |"
	@echo "| and info on bug reports, and the Changelog to find out     |"
	@echo "| what's new.                                                |"
	@echo "|                                                            |"
	@echo "| Let's compile...                                           |"
	@echo "+------------------------------------------------------------+"
	@echo ""

	$(CXX) $(CXXFLAGS) $(CXXFILES) -o iptstate $(LIBS)
	@touch iptstate

	@echo ""
	@echo "All done. Do 'make install' as root and you should be set to go!"
	@echo ""


install:
	$(INSTALL) -D --mode=755 iptstate $(SBIN)/iptstate
	$(INSTALL) -D --mode=444 man/man1/iptstate.1 $(MAN)/man1/iptstate.1


clean:
	/bin/rm -rf iptstate


uninstall:
	/bin/rm -rf $(SBIN)/iptstate
	/bin/rm -rf $(MAN)/man1/iptstate.1