summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 55b6c97c30982dd511640bee10e3d4993eaa9152 (plain)
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

.PHONY: clean clobber uninstall

CFLAGS := -Wall -g -I/usr/include/libxml2
LOADLIBES := -lxml2

COMMON := qarsh_packet.c sockutil.c

all: qarshd qarsh qacp btimed btimec

qarshd: qarshd.c $(COMMON)
qarsh: qarsh.c $(COMMON)
qacp: qacp.c $(COMMON)
btimed: btimed.c
btimec: btimec.c btime.c

install: qarsh qarshd
	@echo Installing qarsh daemon and client
	install -d ${STSDIR}/bin/
	install qacp ${STSDIR}/bin
	install qarsh ${STSDIR}/bin
	install qarshd ${STSDIR}/bin
	
	@echo "Installing btime deamon and test client"
	@install -d ${STSDIR}/bin/
	@install btimed ${STSDIR}/bin
	@install btimec ${STSDIR}/bin

uninstall:
	${UNINSTALL} qacp ${STSDIR}/bin
	${UNINSTALL} qarsh ${STSDIR}/bin
	${UNINSTALL} qarshd ${STSDIR}/bin
	${UNINSTALL} btimed ${STSDIR}/bin
	${UNINSTALL} btimec ${STSDIR}/bin

clean:
	/bin/rm -f *.o

clobber:
	/bin/rm -f qacp
	/bin/rm -f qarsh
	/bin/rm -f qarshd
	/bin/rm -f btimec
	/bin/rm -f btimed