summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile27
1 files changed, 8 insertions, 19 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 088c9f33f..40194245d 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,10 +1,8 @@
-include ../Makefile.config
+DIRS = serial_probe
+LDFLAGS = $(shell pkg-config libtirpc --libs)
+CFLAGS = -Wall $(shell pkg-config libtirpc --cflags)
-RPMS = $(wildcard $(MAIN_RPMS_DIR)/*.rpm)
-DIRS = ddcprobe serial_probe
-CFLAGS = -Wall
-
-ARCH := $(shell arch | egrep "(x86_64|sparc64|s390x)")
+ARCH := $(shell arch | grep -E "x86_64")
ifneq ("x$(ARCH)", "x")
LIB_NAME = lib64
else
@@ -13,27 +11,18 @@ endif
.PHONY: clean install $(DIRS)
-all: $(DIRS) xhost+ rpcinfo-flushed install
+all: $(DIRS) rpcinfo-flushed
$(DIRS):
make -C $@
install:
- @install -d $(MISC_DEST)/auto
- @install mdkinst_stage2_tool $(MISC_DEST)
- cp -rf `perldoc -l packdrake` $(MISC_DEST) || { echo "install rpmtools first!" ; exit 1; }
- @cp -rf `perldoc -l URPM | sed s/URPM.pm//`URPM* $(MISC_DEST) || { echo "install perl-URPM first!" ; exit 1; }
- @cp -rf `perldoc -l URPM | sed s/URPM.pm//`auto/URPM $(MISC_DEST)/auto || { echo "install perl-URPM first!" ; exit 1; }
- @cd /usr/bin ; install packdrake $(MISC_DEST) || { echo "packdrake is missing"; exit 1; }
- @cd /usr/bin ; install gendistrib rpm2header $(MISC_DEST) || { echo "install rpmtools first!" ; exit 1; }
- @mkdir -p $(STAGE2_LIVE)/usr/bin
+ install -d $(ROOTDEST)/misc
+ install mdkinst_stage2_tool drakx-in-chroot $(ROOTDEST)/misc
xhost+: %: %.c
$(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@
-ddcprobe/ddcxinfos:
- $(MAKE) -C ddcprobe ddcxinfos
-
clean:
for i in $(DIRS); do $(MAKE) -C $$i clean; done
- rm -rf *~ xhost+ rpcinfo-flushed ddcprobe/ddcxinfos */*.o
+ rm -rf *~ xhost+ rpcinfo-flushed */*.o