diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..affb3e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +all:igdbg +srcs= igdbg.yacc.c igdbg.lex.c main.c gtt.c ppgtt.c display.c ring.c reg.c debugfs.c +objs= igdbg.yacc.o igdbg.lex.o main.o gtt.o ppgtt.o display.o ring.o reg.o debugfs.o + +igdbg.yacc.c igdbg.yacc.h: igdbg.yacc.y + bison -v -d igdbg.yacc.y -o igdbg.yacc.c + +igdbg.lex.c: igdbg.lex.l + lex -o igdbg.lex.c igdbg.lex.l + +%.o: %.c + gcc -Wall -g -c -o $@ $< -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE + +main.o: main.c main.h + +igdbg: $(srcs) $(objs) + gcc -g -Wall -o igdbg $(objs) -ll -lreadline -lncurses + +clean: + rm -rf igdbg *.o *.output igdbg.lex.c igdbg.yacc.c igdbg.yacc.h |