blob: 56f35d5e338d172404c75af3b8c9966c491009bf (
plain) (
blame)
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
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
XCPPFLAGS = -D'PKGNAME="$(PKGNAME)"' -D'COMMAND="$(COMMAND)"'
PARTS =\
communication\
state\
util\
servers-master\
servers-kernel\
servers-crtc\
servers-gamma\
servers-coopgamma\
types-filter\
types-output\
types-ramps\
types-message\
types-ring
OBJ = $(PARTS:=.o) coopgammad.o
HDR = $(PARTS:=.h) arg.h
all: coopgammad
$(OBJ): $(HDR)
.c.o:
$(CC) -c -o $@ $< $(XCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
coopgammad: $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: coopgammad
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
cp -- coopgammad "$(DESTDIR)$(PREFIX)/bin/coopgammad"
cp -- coopgammad.1 "$(DESTDIR)$(MANPREFIX)/man1/coopgammad.1"
uninstall:
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/coopgammad.1"
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/coopgammad"
clean:
-rm -rf -- coopgammad *.o *.su
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|