2013-11-09 09:27:32 -05:00
|
|
|
MSCDIR=../..
|
|
|
|
include $(MSCDIR)/software/common.mak
|
2013-04-30 18:12:13 -04:00
|
|
|
|
|
|
|
OBJECTS=microudp.o tftp.o
|
|
|
|
|
|
|
|
all: libnet.a
|
|
|
|
|
|
|
|
# pull in dependency info for *existing* .o files
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
libnet.a: $(OBJECTS)
|
|
|
|
$(AR) clr libnet.a $(OBJECTS)
|
|
|
|
$(RANLIB) libnet.a
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(compile-dep)
|
|
|
|
|
|
|
|
%.o: %.S
|
|
|
|
$(assemble)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2013-05-10 16:30:28 -04:00
|
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libnet.a .*~ *~
|