]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Mon, 9 Jan 2012 00:23:53 +0000 (00:23 +0000)
committerhadaq <hadaq>
Mon, 9 Jan 2012 00:23:53 +0000 (00:23 +0000)
libtrbnet/Makefile
pexor/Makefile
pexor/kernel-module/Makefile
trbnetd/Makefile
trbnetd/server/Makefile
trbrich/Makefile

index 8c9ea3f334fefabe2ce2262c79f91a435745bc9c..1cbb08701adc6066cc82b50dbd47863ec2fae335 100644 (file)
@@ -90,6 +90,11 @@ distclean: clean
 depend:
        $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
 
+install: $(TARGETS) $(LIB_TARGETS)
+       install -m 775 $(TARGETS) ../binlocal/
+       install -m 775 $(LIB_TARGETS) ../liblocal/
+       install -m 664 trbnet.h trberror.h pexor_user.h ../include/
+
 # ------------ Dependencies --------------------------------------------
 
 ifndef AXIS_TOP_DIR
index 9f0ad3f0534c0fc601cecf852238f7de63873095..c21becb243ec34c40876360610aa2949639f182d 100644 (file)
@@ -74,18 +74,22 @@ all: $(LIB_TARGETS) $(TARGETS)
 .PHONY: clean 
 clean:
        rm -f *.o core core.*
-       rcsclean
+       make -C kernel-module clean
 
 .PHONY: distclean
 distclean: clean
        rm -f $(TARGETS) $(LIB_TARGETS)
        find . -type l -exec rm {} \;
-       rcsclean -u
+       make -C kernel-module distclean
 
 .PHONY: depend
 depend:
        $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
 
+install: $(TARGETS)
+       install -m 775 $(TARGETS) ../binlocal/
+       make -C kernel-module install
+
 # ------------ Dependencies --------------------------------------------
 
 pexorflash: pexorflash.o
index 3a5f568a5b8e3dfcd3b5e4c2941d3b10e187f9be..d28f4ac6b22acf6a9f4a1599fead0ce980ec8085 100644 (file)
@@ -5,8 +5,24 @@ pexor-objs := pexor_trb.o
 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 PWD       := $(shell pwd)
 
-all:
-       $(MAKE) -C $(KERNELDIR) M=$(PWD)
+# --- Targets ----------------------------------------------------------
+
+TARGETS = pexor.ko
+
+all: $(TARGETS)
+
+.PHONY: distclean
+distclean:
+       $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
 
+.PHONY: clean
 clean:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+
+install: $(TARGETS)
+       install -m 775  $(TARGETS) ../../kernel-modules/
+
+# ------------ Dependencies --------------------------------------------
+
+pexor.ko:
+       $(MAKE) -C $(KERNELDIR) M=$(PWD)
index 9ed6753558aa8572ab48b9b43c97049a34882259..c0d9ea75ab5cdcaa97303e61f1d6a91f1479fcd4 100644 (file)
@@ -95,6 +95,10 @@ cleanrpc:
 depend:
        $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
 
+install: $(TARGETS) $(LIB_TARGETS)
+       install -m 775 $(TARGETS) ../bin/
+       install -m 775 $(LIB_TARGETS) ../lib/
+
 # ------------ Dependencies --------------------------------------------
 
 trbcmd: trbcmd.o libtrbnet.a 
index 29d2dc653132247a42bc560de6863b428526db8f..3fbe6d22022a794d708200da2aa2ddbbdb5f8d04 100644 (file)
@@ -94,6 +94,9 @@ cleanrpc:
 depend:
        $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
 
+install: $(TARGETS)
+       install -m 775 $(TARGETS) ../../binlocal/
+
 # ------------ Dependencies --------------------------------------------
 
 trbnetd: trbnetd.o rpcserver.o trbrpc_xdr.o
index 997b019e801529ce28a08ec03cc2e3c0163da3f4..195764004ff946ea4336c06b6c18b126bf3d4c8f 100644 (file)
@@ -83,6 +83,9 @@ distclean: clean
 depend:
        $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
 
+install: $(TARGETS)
+       install -m 775 $(TARGETS) ../binlocal/
+
 # ------------ Dependencies --------------------------------------------
 
 pulser: pulser.o