mclangc/lib/make.mk
2024-07-24 01:55:53 +03:00

24 lines
482 B
Makefile

#? Sample library build recipe:
#? Prefferably put this in the lib directory
#? The onlu thing needed for root makefile, you can build it another way if u want
# LIBS += bin/lib/libmc.a
#
# libmc_src = $(wildcard lib/libmc/src/*.c)
# libmc_obj = $(patsubst lib/libmc/src/%.c,bin/lib/libmc/%.c.o,$(libmc_src))
#
# bin/lib/libmc.a: $(libmc_obj)
# @mkdir -p $(dir $@)
# ar rcs $@ $^
#
# bin/lib/libmc/%.c.o: lib/libmc/src/%.c
# @mkdir -p $(dir $@)
# $(CC) -c -o $@ $<