rewrite Makefile

This commit is contained in:
Antonio Malcolm 2016-02-21 20:35:20 -08:00
parent 1175dcef12
commit 98ecb165de

View file

@ -1,11 +1,18 @@
TARGET = hex2hcd
CFLAGS = -O2 -march=native
CC = gcc
CC = gcc
CFLAGS = -O2 -march=native
TARGET = hex2hcd
PREFIX = /usr/local
all: $(TARGET)
$(TARGET): $(TARGET).c
all: $(TARGET)
$(TARGET): $(TARGET).c
install: $(TARGET)
install -m 755 $(TARGET) $(PREFIX)/bin
uninstall:
rm -f $(PREFIX)/bin/$(TARGET)
clean:
-rm $(TARGET)
rm -f $(TARGET)