File: Makefile

package info (click to toggle)
jslaunch 2.0-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 156 kB
  • ctags: 132
  • sloc: ansic: 838; sh: 169; makefile: 110
file content (82 lines) | stat: -rw-r--r-- 2,140 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright (C) 1998, Sander Pronk 

LOCKFILE= "\"/var/lock/jslaunch\""
DESTDIR=/usr/local/
MANDIR=/usr/local/share/man/
CONFDIR=/etc/
#This is compatible with the FHS
#change this if you want to have a different location

CFLAGS	= -O2 -Wall -DLOCKFILE=$(LOCKFILE)

LINKOPTS= 

CC	= gcc
# ecgs probably won't work, as jslaunch.c uses asm/io.h and sys/io.h

# don't change anything below this


VERSION = 2.0

TARDIR	= jslaunch-$(VERSION)
BINTARDIR = jslaunch-$(VERSION)-$(HOSTTYPE)

all:	jslaunch jslaunch_showbuttons jslaunchd

jslaunch: jslaunch.o
	gcc $^ $(LINKOPTS) -o $@

jslaunch_showbuttons: jslaunch_showbuttons.o
	gcc $^ $(LINKOPTS) -o $@

jslaunchd: jslaunchd.o
	gcc $^ $(LINKOPTS) -o $@

suid-install: all
	install -s -m4755 -o0 jslaunch jslaunch_showbuttons $(DESTDIR)/bin
	install -s jslaunchd $(DESTDIR)/bin
	install -m644 jslaunchd.conf $(CONFDIR)/
	install -m644 jslaunch.1 jslaunch_showbuttons.1 jslaunchd.1 $(MANDIR)/man1

install: all
	install -s jslaunch jslaunch_showbuttons jslaunchd $(DESTDIR)/bin
	install -m644 jslaunchd.conf $(CONFDIR)/
	install -m644 jslaunch.1 jslaunch_showbuttons.1 jslaunchd.1 $(MANDIR)/man1


debug:	jslaunch.c
	gcc -O2 -g -Wall -DDEBUG -c jslaunch.c -o jslaunch.o
	gcc jslaunch.o -o jslaunch

clean: 
	rm -f *~ *.o
	rm -f jslaunch jslaunch_showbuttons jslaunchd

tardist:
	mkdir $(TARDIR)
	cp *.c *.h Makefile $(TARDIR)
	cp CHANGELOG README COPYING jslaunch.lsm $(TARDIR)
	cp jslaunch.init jslaunch-install $(TARDIR)	
	cp jslaunch-install-nosysv $(TARDIR)
	cp jslaunchd.conf $(TARDIR)
	cp jslaunch.1 jslaunchd.1 jslaunch_showbuttons.1 $(TARDIR)
	tar cf $(TARDIR).tar $(TARDIR)
	rm -rf $(TARDIR)
	gzip -f $(TARDIR).tar

binary-tardist: all
	mkdir $(BINTARDIR)
	cp jslaunch jslaunchd jslaunch_showbuttons $(BINTARDIR)
	cp CHANGELOG README COPYING jslaunch.lsm $(BINTARDIR)
	cp jslaunch.init jslaunch-install $(BINTARDIR)
	cp jslaunch-install-nosysv $(BINTARDIR)
	cp jslaunchd.conf $(BINTARDIR)
	cp jslaunch.1 jslaunchd.1 jslaunch_showbuttons.1 $(BINTARDIR)
	cp Makefile $(BINTARDIR)
	tar cf $(BINTARDIR).tar $(BINTARDIR)
	rm -rf $(BINTARDIR)
	gzip -f $(BINTARDIR).tar


jslaunch.o: jslaunch.h