File: Makefile

package info (click to toggle)
gpppon 0.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 140 kB
  • ctags: 24
  • sloc: ansic: 281; makefile: 61; sh: 25
file content (32 lines) | stat: -rw-r--r-- 943 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
26
27
28
29
30
31
32
# written by John Hasler based on work by Guido Socher
# You may treat this Makefile as if it was in the public domain.

PREFIX=/usr
INSTALL=/usr/bin/install -c
MANP=gpppon.1 
CC=gcc
CFLAGS= -Wall -O2

# use one of these if you do not have gtk-config:
#LIBS=-L /usr/X11R6/lib -lgmodule -lglib -lgtk -lgdk -lXext -lX11 -lm
#LIBS=-L /usr/X11R6/lib -lglib -lgtk -lgdk -lXext -lX11 -lm
#INCLUDES=-I /usr/lib/glib/include

# gtk-config is usually installed together with gtk and it should
# be used when possible:
LIBS=`gtk-config --libs`
INCLUDES=`gtk-config --cflags`

gpppon: gpppon.o
	$(CC) -o gpppon $(LIBS) gpppon.o 
gpppon.o: gpppon.c
	$(CC) -c $(CFLAGS) $(INCLUDES) gpppon.c

install: gpppon $(MANP)
	[ -d "$(PREFIX)/bin" ] || $(INSTALL) -d $(PREFIX)/bin
	[ -d "$(PREFIX)/man/man1" ] || $(INSTALL) -d $(PREFIX)/man/man1
	$(INSTALL) -m 750 -g dip gpppon $(PREFIX)/bin 
	$(INSTALL) -m 644 $(MANP) $(PREFIX)/man/man1

clean:
	rm -f gpppon *.o