From c11d2ffcf12c9d7585791caef2fd5569c830e141 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 22 Oct 2024 01:06:50 +0100 Subject: [PATCH] Update Makefile and fix headers import --- Makefile | 10 ++++------ src/90s.c | 2 +- src/history.c | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 94c8446..cc6d976 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ .POSIX: .SUFFIXES: -CC = cc VERSION = 1.0 TARGET = 90s MANPAGE = $(TARGET).1 @@ -9,8 +8,7 @@ PREFIX ?= /usr/local BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/share/man/man1 -# Flags -CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DVERSION=$(VERSION) +CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -DVERSION=$(VERSION) SRC = src/*.c INCLUDE = include @@ -34,11 +32,11 @@ install: $(TARGET) chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE) uninstall: - $(RM) $(DESTDIR)$(BINDIR)/$(TARGET) - $(RM) $(DESTDIR)$(MANDIR)/$(MANPAGE) + rm $(DESTDIR)$(BINDIR)/$(TARGET) + rm $(DESTDIR)$(MANDIR)/$(MANPAGE) clean: - $(RM) $(TARGET) + rm $(TARGET) all: $(TARGET) diff --git a/src/90s.c b/src/90s.c index a6cac0d..44acadf 100644 --- a/src/90s.c +++ b/src/90s.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/history.c b/src/history.c index abe87a3..709ba13 100644 --- a/src/history.c +++ b/src/history.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include "history.h" #include "90s.h"