Cleanup the Makefiles for the user space part of the device-driver tests.
Add "make clean".

Signed-off-by: Márton Németh <[email protected]>
---
Index: testcases/kernel/device-drivers/agp/user_space/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/agp/user_space/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- testcases/kernel/device-drivers/agp/user_space/Makefile     26 Feb 2009 
06:29:47 -0000      1.3
+++ testcases/kernel/device-drivers/agp/user_space/Makefile     4 Mar 2009 
16:16:45 -0000
@@ -1,8 +1,9 @@
-test_agp: tagp_ki.o user_tagp.o
-       ${CC} tagp_ki.o user_tagp.o -o test_agp

-tagp_ki.o: tagp_ki.c
-       ${CC} -c tagp_ki.c
+CFLAGS += -Wall
+OBJS = tagp_ki.o user_tagp.o

-user_tagp.o: user_tagp.c
-       ${CC} -c user_tagp.c
+test_agp: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+
+clean:
+       rm -f $(OBJS) test_agp
Index: testcases/kernel/device-drivers/base/user_base/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/base/user_base/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- testcases/kernel/device-drivers/base/user_base/Makefile     26 Feb 2009 
06:29:47 -0000      1.2
+++ testcases/kernel/device-drivers/base/user_base/Makefile     4 Mar 2009 
16:16:45 -0000
@@ -1,11 +1,9 @@
-test_base: tbase_ki.o user_tbase.o
-       ${CC} tbase_ki.o user_tbase.o -o test_base

-tbase_ki.o: tbase_ki.c
-       ${CC} -c tbase_ki.c
+CFLAGS += -Wall
+OBJS = tbase_ki.o user_tbase.o

-user_tbase.o: user_tbase.c
-       ${CC} -c user_tbase.c
+test_base: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@

 clean:
-        rm -f *.o 2>/dev/null || true
+       rm -f $(OBJS) test_base
Index: testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile       
26 Feb 2009 06:29:47 -0000      1.2
+++ testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile       
4 Mar 2009 16:16:45 -0000
@@ -1,8 +1,9 @@
-test_mod: tmod_ki.o user_tmod.o
-       ${CC} tmod_ki.o user_tmod.o -o test_mod

-tmod_ki.o: tmod_ki.c
-       ${CC} -c tmod_ki.c
+CFLAGS += -Wall
+OBJS = tmod_ki.o user_tmod.o

-user_tmod.o: user_tmod.c
-       ${CC} -c user_tmod.c
+test_mod: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+
+clean:
+       rm -f $(OBJS) test_mod
Index: testcases/kernel/device-drivers/pci/user_tpci/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/pci/user_tpci/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- testcases/kernel/device-drivers/pci/user_tpci/Makefile      26 Feb 2009 
06:29:47 -0000      1.2
+++ testcases/kernel/device-drivers/pci/user_tpci/Makefile      4 Mar 2009 
16:16:45 -0000
@@ -1,8 +1,9 @@
-test_pci: tpci_ki.o user_tpci.o
-       ${CC} tpci_ki.o user_tpci.o -o test_pci

-tpci_ki.o: tpci_ki.c
-       ${CC} -c tpci_ki.c
+CFLAGS += -Wall
+OBJS = tpci_ki.o user_tpci.o

-user_tpci.o: user_tpci.c
-       ${CC} -c user_tpci.c
+test_pci: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+
+clean:
+       rm -f $(OBJS) test_pci
Index: testcases/kernel/device-drivers/tbio/user_space/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/tbio/user_space/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- testcases/kernel/device-drivers/tbio/user_space/Makefile    26 Feb 2009 
06:29:47 -0000      1.2
+++ testcases/kernel/device-drivers/tbio/user_space/Makefile    4 Mar 2009 
16:16:45 -0000
@@ -1,8 +1,9 @@
-test_bio: tbio_ki.o user_tbio.o
-       ${CC} -g tbio_ki.o user_tbio.o -o test_bio

-tbio_ki.o: tbio_ki.c
-       ${CC} -c -g  tbio_ki.c
+CFLAGS += -Wall -g
+OBJS = tbio_ki.o user_tbio.o

-user_tbio.o: user_tbio.c
-       ${CC} -c -g user_tbio.c
+test_bio: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+
+clean:
+       rm -f $(OBJS) test_bio
Index: testcases/kernel/device-drivers/usb/user_usb/Makefile
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/device-drivers/usb/user_usb/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- testcases/kernel/device-drivers/usb/user_usb/Makefile       26 Feb 2009 
06:29:47 -0000      1.2
+++ testcases/kernel/device-drivers/usb/user_usb/Makefile       4 Mar 2009 
16:16:45 -0000
@@ -1,8 +1,9 @@
-test_usb: tusb_ki.o user_tusb.o
-       ${CC} tusb_ki.o user_tusb.o -o test_usb

-tusb_ki.o: tusb_ki.c
-       ${CC} -c tusb_ki.c
+CFLAGS += -Wall
+OBJS = tusb_ki.o user_tusb.o

-user_tusb.o: user_tusb.c
-       ${CC} -c user_tusb.c
+test_usb: $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+
+clean:
+       rm -f $(OBJS) test_usb

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to