summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2007-07-26 15:47:17 +0200
committerMatthias Hopf <mhopf@suse.de>2007-07-26 15:47:17 +0200
commita2981aa34a73c491e86ef2c49998cb482fcb658b (patch)
tree84084f9d47d7b7750e92b468b8fcc91cf5bc4de1 /Makefile
parent543665f2017e5a7090e0d3c16ed55216fedccb36 (diff)
Added data structure analysis.
Nuked structsizedumper.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index f601183..82e646e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,32 @@
CFLAGS = -O0 -g3 -Wall
-all: atomdis structsizedumper
+all: atomdis
-atomdis: main.o
- $(CC) -o atomdis $<
-structsizedumper: structsizedumper_gen.o
- $(CC) -o structsizedumper $<
+atomdis: main.o datastructs.o
+ $(CC) -o atomdis $^
clean: _always_
- rm -f *.o
- rm -f atombios.h structsizedumper_gen.c
+ -rm -f *.o
+ -rm -f atombios.h datastructs_gen.c
distclean: clean
- rm atomdis structsizedumper
+ -rm -f *~
+ -rm atomdis structsizedumper
atombios.h:
test -r ../ATI/atombios.h
ln -s ../ATI/atombios.h .
-structsizedumper_gen.c: atombios.h structsizedumper_factory.pl
- perl ./structsizedumper_factory.pl < atombios.h > structsizedumper_gen.c
+datastructs_gen.c: atombios.h datastructs_factory.pl
+ cpp atombios.h | perl ./datastructs_factory.pl > datastructs_gen.c
_always_:
@true
main.o: atombios.h
+datastructs.o: CFLAGS += -Wno-unused
+datastructs.o: atombios.h datastructs_gen.c
#EOF