Merge pull request #1 from antonio-malcolm/master

rewrite Makefile
This commit is contained in:
Jesse Sung 2017-08-14 14:31:55 +08:00 committed by GitHub
commit bd704d85e8

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) all: $(TARGET)
$(TARGET): $(TARGET).c $(TARGET): $(TARGET).c
clean: install: $(TARGET)
-rm $(TARGET) install -m 755 $(TARGET) $(PREFIX)/bin
uninstall:
rm -f $(PREFIX)/bin/$(TARGET)
clean:
rm -f $(TARGET)