diff options
author | Dave Jones <davej@redhat.com> | 2011-03-08 19:49:40 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-03-08 19:49:40 -0500 |
commit | 59d4f7e079a4c1395e0d2a510829624e7522b13c (patch) | |
tree | 4a80cc550202ae2e0af2b2e2c1bd47f16593ee34 | |
parent | c2a113493e84b6d8ec873e8b5c8c0496deac27d1 (diff) |
Remove all the dependancy generation stuff.
The .P files really bothered me for a long time, cluttering up the directory
while hacking. Things seem to build just fine without any of this stuff.
-rw-r--r-- | Makefile | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -1,3 +1,5 @@ +VERSION=1.28 + CFLAGS = -g -O2 -Werror -Wall -Wshadow -Wextra -Wmissing-declarations -Wdeclaration-after-statement -Wredundant-decls -fno-strict-aliasing LDFLAGS = -Wl,-z,relro,-z,now # -Wstrict-overflow=5 @@ -5,18 +7,6 @@ CC = gcc SHELL = /bin/sh - -.c.o: - $(CC) $(CFLAGS) -MMD -MF $(patsubst %.c,%.d,$<) -o $@ -c $< - @cp $*.d $*.P; \ - sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ - -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ - rm -f $*.d - -.S.o: - $(CC) $(CFLAGS) -o $@ -c $< - - all: x86info test lsmsr @@ -37,7 +27,8 @@ lsmsr.c: $(LSMSR_TMP_HEADERS) lsmsr: $(LSMSR_TMP_HEADERS) $(LSMSR_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o lsmsr $(LSMSR_OBJS) --include $(LSMSR_SRC:%.c=%.P) + + X86INFO_SRC = \ AMD/identify.c \ @@ -100,7 +91,6 @@ X86INFO_OBJS = $(X86INFO_SRC:%.c=%.o) x86info: $(X86INFO_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o x86info $(X86INFO_OBJS) --include $(X86INFO_SRC:%.c=%.P) nodes: @@ -109,8 +99,6 @@ nodes: test: scripts/testnodes -VERSION=1.28 - release: git repack -a -d git prune-packed @@ -119,7 +107,6 @@ release: clean: @find . -name "*.o" -exec rm {} \; @find . -name "*~" -exec rm {} \; - @find . -name "*.P" -exec rm {} \; @rm -f x86info x86info.exe @rm -f lsmsr $(LSMSR_TMP_HEADERS) @rm -f core.* |