From 675f5512022b6ce1427f11e664e2e45e37048f68 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Sun, 4 Oct 2015 12:48:42 +0200 Subject: remove several unused Makefiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Uwe Kleine-König Signed-off-by: John Kacur --- src/hackbench/Makefile | 5 ---- src/pi_tests/Makefile | 71 ------------------------------------------------ src/pmqtest/Makefile | 16 ----------- src/ptsematest/Makefile | 16 ----------- src/sigwaittest/Makefile | 17 ------------ src/svsematest/Makefile | 16 ----------- 6 files changed, 141 deletions(-) delete mode 100644 src/hackbench/Makefile delete mode 100644 src/pi_tests/Makefile delete mode 100644 src/pmqtest/Makefile delete mode 100644 src/ptsematest/Makefile delete mode 100644 src/sigwaittest/Makefile delete mode 100644 src/svsematest/Makefile diff --git a/src/hackbench/Makefile b/src/hackbench/Makefile deleted file mode 100644 index 469cf25..0000000 --- a/src/hackbench/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -hackbench: hackbench.c - $(CC) $(CFLAGS) -o hackbench hackbench.c -g -Wall -O2 -lpthread - -clean : - rm -f hackbench diff --git a/src/pi_tests/Makefile b/src/pi_tests/Makefile deleted file mode 100644 index 6b9b595..0000000 --- a/src/pi_tests/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -PACKAGE := pi_tests -SPEC := $(PACKAGE).spec -VERSION := $(shell awk '/^Version:/ { print $$2 }' $(SPEC)) -RELEASE := $(shell awk '/Release:/ { print $$2 }' ${PACKAGE}.spec) -SRPM := $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm -HERE := $(shell pwd) -TARGET := $(shell uname -p) -RPMARGS := --define "_sourcedir $(HERE)" \ - --define "_builddir $(HERE)/BUILD" \ - --define "_rpmdir $(HERE)/RPMS" \ - --define "_srcrpmdir $(HERE)/SRPMS" -CC := gcc -OPT := -g -O -CFLAGS := $(OPT) -Wall -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -LIBS := -lpthread -lrt - -SRC := classic_pi.c allprios.c tst-mutexpi10.c pi_stress.c sigtest.c -DOC := pi_stress.8 README COPYING -TARGETS := $(subst .c,,$(SRC)) - -all: classic_pi pi_stress - -classic_pi: classic_pi.c - $(CC) $(CFLAGS) -o $@ $< $(LIBS) - -pi_stress: pi_stress.c - $(CC) $(CFLAGS) -o $@ $< $(LIBS) - -tst-mutexpi10: tst-mutexpi10.c - $(CC) $(CFLAGS) -o $@ $< $(LIBS) - -#tst-mutexpi10.c: classic_pi.c -# indent --gnu-style classic_pi.c -o tst-mutexpi10.c - -allprios: allprios.c - $(CC) $(CFLAGS) -o $@ $< $(LIBS) - -tarball: pi_tests-$(VERSION).tar.gz - -libctest: tst-mutexpi10 - -sigtest: sigtest.c - $(CC) $(CFLAGS) -o $@ $< $(LIBS) - -pi_tests-$(VERSION).tar.gz: clean $(SRC) $(DOC) Makefile pi_tests.spec - rm -rf $@ pi_tests-$(VERSION) - mkdir pi_tests-$(VERSION) - cp $(SRC) $(DOC) Makefile pi_tests.spec pi_tests-$(VERSION) - tar -czvf pi_tests-$(VERSION).tar.gz pi_tests-$(VERSION) - -clean: - rm -rf *~ *.[oi] $(TARGETS) *.tar.gz pi_tests-* - -rpm: rpmdirs $(SPEC) tarball - rm -rf RPMS/$(TARGET) - rpmbuild -ba --target $(TARGET) $(RPMARGS) $(SPEC) - -rpmdirs: - @[ -d BUILD ] || mkdir BUILD - @[ -d RPMS ] || mkdir RPMS - @[ -d SRPMS ] || mkdir SRPMS - -rpmlint lint: rpm - rpmlint -vi RPMS/*/* - rpmlint -vi SRPMS/* - -DESTINATION := people.redhat.com:~williams/public_html/tests - -push: rpm - scp pi_tests-$(VERSION).tar.gz $(DESTINATION) - scp SRPMS/* $(DESTINATION) diff --git a/src/pmqtest/Makefile b/src/pmqtest/Makefile deleted file mode 100644 index 0902c9b..0000000 --- a/src/pmqtest/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -CFLAGS += -Wall -O2 -LDFLAGS += -lpthread - -all: pmqtest - @echo Done - -pmqtest.o: pmqtest.c - -pmqtest: - -clean: - @rm -f *.o - -tar: clean - @rm -f pmqtest - $(shell bn=`basename $$PWD`; cd ..; tar -zcf $$bn.tgz $$bn) diff --git a/src/ptsematest/Makefile b/src/ptsematest/Makefile deleted file mode 100644 index dc12bc2..0000000 --- a/src/ptsematest/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -CFLAGS += -Wall -O2 -LDFLAGS += -lpthread - -all: ptsematest - @echo Done - -ptsematest.o: ptsematest.c - -ptsematest: - -clean: - @rm -f *.o - -tar: clean - @rm -f ptsematest - $(shell bn=`basename $$PWD`; cd ..; tar -zcf $$bn.tgz $$bn) diff --git a/src/sigwaittest/Makefile b/src/sigwaittest/Makefile deleted file mode 100644 index 697e3d5..0000000 --- a/src/sigwaittest/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -CFLAGS += -Wall -O2 -LDFLAGS += -lpthread -lrt - -all: sigwaittest - @echo Done - -sigwaittest.o: sigwaittest.c - -sigwaittest: - -clean: - @rm -f *.o - -tar: clean - @rm -f sigwaittest - $(shell bn=`basename $$PWD`; cd ..; tar -zcf $$bn.tgz $$bn) - diff --git a/src/svsematest/Makefile b/src/svsematest/Makefile deleted file mode 100644 index da8d32d..0000000 --- a/src/svsematest/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -CFLAGS += -Wall -O2 -LDFLAGS += -lpthread -lrt - -all: svsematest - @echo Done - -svsematest.o: svsematest.c - -svsematest: - -clean: - @rm -f *.o - -tar: clean - @rm -f svsematest - $(shell bn=`basename $$PWD`; cd ..; tar -zcf $$bn.tgz $$bn) -- cgit 1.2.3-korg