rewrite Makefile #1

Merged
antonio-malcolm merged 1 commit from master into master 2017-08-14 08:31:55 +02:00
Showing only changes of commit 98ecb165de - Show all commits

View file

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