nuclear@0: PREFIX = /usr/local nuclear@0: nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@0: name = packio nuclear@0: nuclear@0: lib_a = lib$(name).a nuclear@0: nuclear@0: inc = -Iinclude nuclear@0: nuclear@0: CFLAGS = -pedantic -Wall -g $(pic) $(inc) nuclear@0: nuclear@0: $(lib_a): $(obj) nuclear@0: $(AR) rcs $@ $(obj) nuclear@0: nuclear@0: -include $(dep) nuclear@0: nuclear@0: %.d: %.c nuclear@0: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(dep) $(lib_a)