Newer
Older
checksum / Makefile
@takayun takayun on 17 Feb 2017 173 bytes fix option
PROG=csum
OBJS=calc_checksum.o

$(PROG): $(OBJS)
	if [ ! -e bin ]; then mkdir bin; fi
	$(CC) -o $@ $^
	mv $@ bin

.c.o:
	gcc -c $<

.PHONY: clean
clean:
	rm -fr bin $(OBJS)