crashtest-r0ket/firmware/Makefile.util
Stefan `Sec` Zehl 4b6bf26481 Fix make depend
2011-07-18 10:12:52 +02:00

21 lines
339 B
Text

LIBFILE?=lib$(LIBNAME).a
SRCS?= $(foreach mod,$(OBJS),$(subst .o,.c,$(mod)))
DEPFILE?=Makefile.dep
all: $(LIBFILE)
$(LIBFILE): $(OBJS)
$(AR) rcs $@ $(OBJS)
%.o : %.c
$(CC) $(CFLAGS) -o $@ $<
clean:
rm -f $(OBJS) $(LIBFILE) $(CLEANFILES)
depend:
@$(CC) $(CFLAGS) -MM $(SRCS) > Makefile.dep
include $(DEPFILE)
$(DEPFILE): depend