mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-23 22:22:07 +03:00
880981d5b4
* Ignore build artifacts in 'tests' directory * Remove unused variables in makefiles * Add 'bootstrap-clean' rule to delete build artifacts from 'bootstrap' directory * Add 'distclean' rule to delete all build artifacts from the source tree
29 lines
382 B
Makefile
29 lines
382 B
Makefile
include ../../../config.mk
|
|
|
|
TARGET = libcb
|
|
|
|
SRCS = $(wildcard *.c)
|
|
OBJS = $(SRCS:.c=.o)
|
|
DEPS = $(OBJS:.o=.d)
|
|
|
|
|
|
all: $(TARGET)$(SHLIB_SUFFIX)
|
|
|
|
$(TARGET)$(SHLIB_SUFFIX): $(OBJS)
|
|
$(CC) -shared $(LDFLAGS) -o $@ $^
|
|
|
|
|
|
-include $(DEPS)
|
|
|
|
%.d: %.c
|
|
@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean :
|
|
$(RM) $(OBJS) $(TARGET)$(SHLIB_SUFFIX)
|
|
|
|
cleandep: clean
|
|
$(RM) $(DEPS)
|