borgware-2d/rules.mk

22 lines
337 B
Makefile
Raw Normal View History

OBJECTS += $(patsubst %.c,%.o,${SRC})
OBJECTS += $(patsubst %.S,%.o,${ASRC})
%.a: $(OBJECTS)
$(RM) $@
$(AR) qcv $@ $^
# $(STRIP) --strip-unneeded $@
%.o: %.S
$(CC) -o $@ $(CPPFLAGS) $(ASFLAGS) -c $<
clean-common:
$(RM) $(TARGET) *.[odasE] *.d.new *~
clean: clean-common
all:
make -C $(TOPDIR) all
include $(TOPDIR)/depend.mk