mirror of
https://github.com/troglobit/libite.git
synced 2026-10-02 05:42:49 +07:00
10 lines
325 B
Makefile
10 lines
325 B
Makefile
# Pretty printing and GCC -M for auto dep files
|
|
%.o: %.c
|
|
$(PRINT) " CC $(subst $(ROOTDIR)/,,$(shell pwd)/)$@\n"
|
|
$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c -MMD -MP -o $@ $<
|
|
|
|
%: %.o
|
|
$(PRINT) " LINK $(subst $(ROOTDIR)/,,$(shell pwd)/)$@\n"
|
|
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$@.map -o $@ $^ $(LDLIBS$(LDLIBS-$(@)))
|
|
|