combjs

view 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
line source
1 PREFIX = /usr/local
3 src = $(wildcard *.c)
4 obj = $(src:.c=.o)
5 bin = combjs
7 CC = gcc
8 CFLAGS = -pedantic -Wall -g
10 $(bin): $(obj)
11 $(CC) -o $@ $(obj) $(LDFLAGS)
13 .PHONY: clean
14 clean:
15 rm -f $(obj) $(bin)
17 .PHONY: install
18 install: $(bin)
19 mkdir -p $(PREFIX)/bin
20 cp $(bin) $(PREFIX)/bin/$(bin)
21 chown root $(PREFIX)/bin/$(bin)
22 chmod 4775 $(PREFIX)/bin/$(bin)
24 .PHONY: uninstall
25 uninstall:
26 rm -f $(PREFIX)/bin/$(bin)