From 384c8130f94f8939128dc19325df9c9611a7d4d4 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 22 Oct 2024 01:19:14 +0100 Subject: [PATCH] Update Makefile --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 039823f..a72b365 100644 --- a/Makefile +++ b/Makefile @@ -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)