summaryrefslogtreecommitdiffstats
path: root/qarsh/Makefile
blob: 762b7569aee6fdbaad06b0f15791faf0cdf33722 (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

include ../../make/defines.mk
.PHONY: clean clobber uninstall

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

COMMON := qarsh_packet.c sockutil.c

all: qarshd qarsh qacp

qarshd: qarshd.c $(COMMON)
qarsh: qarsh.c $(COMMON)
qacp: qacp.c $(COMMON)

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

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

clean:
	/bin/rm -f *.o

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