-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (50 loc) · 1.32 KB
/
Makefile
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
#
SHELL = /bin/sh
CC = gcc
ARCH = $(shell uname -m)
#
CFLAGS = $(RPM_OPT_FLAGS) -Wall -I/usr/local/include
LFLAGS = -Xlinker -warn-common -L/usr/local/lib
LIBS = -lqdbm
LINT = lint -abchuvx
LLIBS =
# where things go
BINDIR = /usr/local/bin
VERSION = 1
SUBVERSION = 0
PATCHLEVEL = 0
# what are we making
SRC = notify.c noticeserver.c
OBJ = notify.o noticeserver.o
BIN = notify noticeserver
# what we are packaging
PACKAGE = Makefile common.h\
notify notify.c noticeserver noticeserver.c
TGZFILE = notifier-$(VERSION).$(SUBVERSION).$(PATCHLEVEL).tar.gz
# rules
all: $(BIN) java
install: all
install -s -m 755 $(BIN) $(BINDIR)
notify: notify.c common.h
$(CC) $(CFLAGS) $(PFLAGS) $(LFLAGS) -o notify notify.c $(LIBS)
noticeserver: noticeserver.c common.h
$(CC) $(CFLAGS) $(PFLAGS) $(LFLAGS) -o noticeserver noticeserver.c $(LIBS)
java: build.xml
ant
debug: $(SRC)
$(CC) $(CFLAGS) -DDEBUG $(LFLAGS) -o notify notify.c $(LIBS)
$(CC) $(CFLAGS) -DDEBUG $(LFLAGS) -o noticeserver noticeserver.c $(LIBS)
clean:
rm -f *.o core *.out Makefile.old~
rm -rf ./build
rm ./notify
rm ./noticeserver
rm ./Dashboard.jar
uninstall:
rm $(BINDIR)/notify
rm $(BINDIR)/noticeserver
clobber: clean
rm -f $(BIN)
package: all
strip notify noticeserver
tar cvf - $(PACKAGE) | gzip > ../$(TGZFILE)