File: Makefile

package info (click to toggle)
idswakeup 1.0-3
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 68 kB
  • ctags: 64
  • sloc: sh: 688; ansic: 77; makefile: 58
file content (40 lines) | stat: -rw-r--r-- 823 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
# Makefile for IDSwakeup
# Edited for Debian GNU

CC = gcc
RM = /bin/rm
CPPFLAGS =
#CFLAGS = -O2 -g -Wall -pedantic 
CFLAGS = -O2
LDFLAGS =
HEADERS =
SRCS = iwu.c
OBJS = iwu.o
LIBS = -lnet

package = idswakeup
prefix = /usr
sbindir = ${prefix}/sbin
docdir = ${prefix}/share/doc/${PACKAGE}

all: iwu

iwu:	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $? $(LIBS) ; \

iwu.o: $(SRCS) $(HEADERS)
#	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $(SRCS)

dist:   all
	mkdir IDSwakeup-1.0
	cp IDSwakeup iwu.c README LICENSE Makefile IDSwakeup-1.0/
	tar cvzf IDSwakeup-1.0.tgz IDSwakeup-1.0/
	rm -fr ./IDSwakeup-1.0/

install:
	install -oroot -groot -d $(DESTDIR)$(sbindir) $(DESTDIR)$(docdir)
	install -oroot -groot -m0755 iwu $(DESTDIR)$(sbindir)
	install -oroot -groot -m0755 IDSwakeup $(DESTDIR)$(sbindir)/idswakeup

clean:
	$(RM) -f $(OBJS) iwu *~