From 3b534c77a750f03b05e339eb0221d2f4e077c560 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 22 Oct 2024 01:16:56 +0100 Subject: [PATCH] Update Makefile --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 428d23c..d5fabf1 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,15 @@ .POSIX: .SUFFIXES: -CC = cc VERSION = 1.0 TARGET = tlc MANPAGE = $(TARGET).1 PREFIX ?= /usr/local BINDIR = $(PREFIX)/bin -# Flags -CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -flto -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -lm +CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -flto -pedantic -Wall -lm -SRC = $(TARGET).c +SRC = tlc.c $(TARGET): $(SRC) $(CC) $(SRC) -o $@ $(CFLAGS) @@ -29,10 +27,10 @@ install: $(TARGET) chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET) uninstall: - $(RM) $(DESTDIR)$(BINDIR)/$(TARGET) + rm $(DESTDIR)$(BINDIR)/$(TARGET) clean: - $(RM) $(TARGET) + rm $(TARGET) all: $(TARGET)