2014-04-18 07:56:18 -04:00
|
|
|
TARGETS=flterm byteswap
|
2013-02-19 07:22:35 -05:00
|
|
|
CC=gcc
|
2013-05-10 16:30:28 -04:00
|
|
|
RM ?= rm -f
|
2012-02-05 13:14:24 -05:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
%: %.c
|
2012-05-16 04:20:04 -04:00
|
|
|
$(CC) -O2 -Wall -I../common -s -o $@ $<
|
2012-02-05 13:14:24 -05:00
|
|
|
|
2014-04-18 07:56:18 -04:00
|
|
|
install: flterm
|
2012-02-08 09:09:07 -05:00
|
|
|
install -d /usr/local/bin
|
|
|
|
install -m755 -t /usr/local/bin $^
|
2012-02-05 13:14:24 -05:00
|
|
|
|
2013-05-10 16:30:28 -04:00
|
|
|
.PHONY: all clean install
|
2012-02-05 13:14:24 -05:00
|
|
|
|
|
|
|
clean:
|
2013-05-10 16:30:28 -04:00
|
|
|
$(RM) $(TARGETS)
|