TESTS = udp_client ECOS_LIB = /space/ecos-2.0/latest/nga/full/no-assert INCLUDE = . SOURCE = . vpath %.h $(INCLUDE) vpath %.c $(SOURCE) CC = mips-elf-gcc LD = mips-elf-gcc DIS = mips-elf-objdump -d -S $@ > $@.dis SGEN = mips-elf-objcopy -O srec $@ $@.srec CCFLAGS = -g -D__ECOS -I$(ECOS_LIB)/include -I$(INCLUDE) \ -ffunction-sections -fdata-sections -freg-struct-return LDFLAGS = -g -nostartfiles -L$(ECOS_LIB)/lib -Wl,--gc-sections -Wl,--Map -Wl,$@.map LIBS = -Ttarget.ld -nostdlib .C.o : $(CPP) $(CCFLAGS) -c $< .c.o : $(CC) $(CCFLAGS) -c $< .S.o : $(AS) $(ASFLAGS) -c $< %.po : %.o $(PRELINK) -o $@ $< all : $(TESTS) clean : rm -f $(TESTS) *.o *.dis *.map *.srec relink : rm -f $(TESTS) udp_client : udp_client.o $(LD) -o $@ udp_client.o $(LDFLAGS) $(LIBS) $(SGEN) $(DIS) udp_client.o : udp_client.c