crashtest-r0ket/firmware/Makefile.util

22 lines
341 B
Makefile

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 -MF Makefile.dep $(SRCS)
include $(DEPFILE)
$(DEPFILE): depend