added makefile

pull/2/head
Connor Olding 11 years ago
parent 24252204b2
commit 113e68a1f5

@ -0,0 +1,19 @@
PROGRAM = crc32
.PHONY: all clean install
FILES = main.c
CFLAGS += -Wall -Werror -ansi -pedantic
LDFLAGS +=
PREFIX ?= /usr/local
all: $(PROGRAM)
$(PROGRAM): $(FILES)
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(FILES)
clean:
-rm -f $(PROGRAM)
install:
cp $(PROGRAM) $(PREFIX)/bin
Loading…
Cancel
Save