nuclear@5: PREFIX = /usr/local nuclear@5: nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: nuclear@3: bin = lbm2bin nuclear@0: nuclear@4: CFLAGS = -pedantic -Wall -g nuclear@0: LDFLAGS = -lm nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@5: nuclear@5: .PHONY: install nuclear@5: install: $(bin) nuclear@5: mkdir -p $(DESTDIR)$(PREFIX)/bin nuclear@5: cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) nuclear@5: nuclear@5: .PHONY: uninstall nuclear@5: uninstall: nuclear@5: rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)