summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
blob: 40194245daf73bd52682b7550adffbd1b69df0c6 (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
DIRS	    = serial_probe
LDFLAGS     = $(shell pkg-config  libtirpc --libs)
CFLAGS      = -Wall $(shell pkg-config  libtirpc --cflags)

ARCH := $(shell arch | grep -E "x86_64")
ifneq ("x$(ARCH)", "x")
LIB_NAME = lib64
else
LIB_NAME = lib
endif

.PHONY: clean install $(DIRS)

all: $(DIRS) rpcinfo-flushed

$(DIRS):
	make -C $@

install:
	install -d $(ROOTDEST)/misc
	install mdkinst_stage2_tool drakx-in-chroot $(ROOTDEST)/misc

xhost+: %: %.c
	$(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@

clean: 
	for i in $(DIRS); do $(MAKE) -C $$i clean; done
	rm -rf *~ xhost+ rpcinfo-flushed */*.o