mirror of
https://github.com/troglobit/libite.git
synced 2026-10-01 13:32:42 +07:00
Add basic .gitignore, cleanup inherited Makefile from Finit and add a small rules.mk from libuEv. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
10 lines
317 B
Makefile
10 lines
317 B
Makefile
# Pretty printing and GCC -M for auto dep files
|
|
%.o: %.c
|
|
@printf " CC $(subst $(ROOTDIR)/,,$(shell pwd)/)$@\n"
|
|
@$(CC) $(CFLAGS) $(CPPFLAGS) -c -MMD -MP -o $@ $<
|
|
|
|
%: %.o
|
|
@printf " LINK $(subst $(ROOTDIR)/,,$(shell pwd)/)$@\n"
|
|
@$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$@.map -o $@ $^ $(LDLIBS$(LDLIBS-$(@)))
|
|
|