combjs

annotate Makefile @ 2:4e8f2bbe8426

doing the gui
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 15 Jul 2011 06:54:32 +0300
parents 15293518d92b
children
rev   line source
nuclear@1 1 PREFIX = /usr/local
nuclear@1 2
nuclear@0 3 src = $(wildcard *.c)
nuclear@0 4 obj = $(src:.c=.o)
nuclear@0 5 bin = combjs
nuclear@0 6
nuclear@0 7 CC = gcc
nuclear@0 8 CFLAGS = -pedantic -Wall -g
nuclear@0 9
nuclear@0 10 $(bin): $(obj)
nuclear@0 11 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 12
nuclear@0 13 .PHONY: clean
nuclear@0 14 clean:
nuclear@0 15 rm -f $(obj) $(bin)
nuclear@1 16
nuclear@1 17 .PHONY: install
nuclear@1 18 install: $(bin)
nuclear@1 19 mkdir -p $(PREFIX)/bin
nuclear@1 20 cp $(bin) $(PREFIX)/bin/$(bin)
nuclear@1 21 chown root $(PREFIX)/bin/$(bin)
nuclear@1 22 chmod 4775 $(PREFIX)/bin/$(bin)
nuclear@1 23
nuclear@1 24 .PHONY: uninstall
nuclear@1 25 uninstall:
nuclear@1 26 rm -f $(PREFIX)/bin/$(bin)