Update Makefile

This commit is contained in:
Night Kaly 2024-10-22 01:19:14 +01:00
parent 0d0205db97
commit 384c8130f9
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -1,16 +1,14 @@
.POSIX:
.SUFFIXES:
CC = cc
VERSION = 1.0
TARGET = nsh
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
# Flags
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall
SRC = $(TARGET).c
SRC = nsh.c
$(TARGET): $(SRC)
$(CC) $(SRC) -o $@ $(CFLAGS)
@ -28,10 +26,10 @@ install: $(TARGET)
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
rm $(DESTDIR)$(BINDIR)/$(TARGET)
clean:
$(RM) $(TARGET)
rm $(TARGET)
all: $(TARGET)