nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@0: bin = tinywebd nuclear@10: weblib = libtinyweb/libtinyweb.so nuclear@0: nuclear@10: CFLAGS = -pedantic -Wall -g -Ilibtinyweb/src nuclear@10: LDFLAGS = -Llibtinyweb -Wl,-rpath=libtinyweb -ltinyweb nuclear@0: nuclear@10: $(bin): $(obj) $(weblib) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@10: $(weblib): nuclear@10: $(MAKE) -C libtinyweb nuclear@10: 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) $(bin) nuclear@10: nuclear@10: .PHONY: install nuclear@10: install: $(bin) nuclear@10: mkdir -p $(PREFIX)/bin nuclear@10: cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) nuclear@10: nuclear@10: .PHONY: uninstall nuclear@10: uninstall: nuclear@10: rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)