nuclear@1: PREFIX = /usr/local nuclear@1: nuclear@0: src = $(wildcard *.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = combjs nuclear@0: nuclear@0: CC = gcc nuclear@0: CFLAGS = -pedantic -Wall -g 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@1: nuclear@1: .PHONY: install nuclear@1: install: $(bin) nuclear@1: mkdir -p $(PREFIX)/bin nuclear@1: cp $(bin) $(PREFIX)/bin/$(bin) nuclear@1: chown root $(PREFIX)/bin/$(bin) nuclear@1: chmod 4775 $(PREFIX)/bin/$(bin) nuclear@1: nuclear@1: .PHONY: uninstall nuclear@1: uninstall: nuclear@1: rm -f $(PREFIX)/bin/$(bin)