rewrite Makefile #1
1 changed files with 14 additions and 7 deletions
21
Makefile
21
Makefile
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue