Makefile

Go to the documentation of this file.
00001 OPTIONS_CC = -g -DHAVE_NVENV -DNVRAM_IN_FLASH
00002 OPTIONS_LD = -g -ldl -lreadline 
00003 CC=gcc
00004 
00005 all: ejtag_debug_usb ejtag_debug_pp
00006 
00007 gdb.o :lib/jtagemul.o lib/jtagsock.o lib/gdbrdp.o
00008         ld -r -o $@ $^
00009 ejtag_debug_usb: begin.o main.o mips32.o usb_jtag.o usb_ejtag_command.o gdb.o disassemble.o end.o
00010         ${CC} -g -lusb -o ejtag_debug_usb $^ -I . ${OPTIONS_LD}
00011 
00012 ejtag_debug_pp: begin.o main.o mips32.o jtag.o parport.o gdb.o disassemble.o end.o
00013         ${CC} -g  -o ejtag_debug_pp $^ -I . ${OPTIONS_LD}
00014 
00015 
00016 main.o: main.c lib/env.c lib/put.c lib/sput.c
00017 
00018 %.o:%.c
00019         ./mycc -c -I. -I./lib -o $@ $< -I ./include ${OPTIONS_CC}
00020 clean:
00021         rm -f *.out *.a *.o dev/*.o ejtag_debug_usb  ejtag_debug_pp *.tmp.c lib/*.o lib/*.tmp.c

Generated on Fri Nov 5 07:24:46 2010 for ejtag debug tools for loongson 232 cpu by  doxygen 1.5.6