added makefile

This commit is contained in:
Connor Olding 2012-08-04 05:26:25 -07:00
parent 24252204b2
commit 113e68a1f5
1 changed files with 19 additions and 0 deletions

19
Makefile Normal file
View File

@ -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