Update Makefile and fix headers import

This commit is contained in:
Night Kaly 2024-10-22 01:06:50 +01:00
parent 9113f1c110
commit c11d2ffcf1
Signed by: night0721
GPG key ID: 957D67B8DB7A119B
3 changed files with 6 additions and 8 deletions

View file

@ -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)

View file

@ -3,7 +3,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <linux/limits.h>
#include <limits.h>
#include <time.h>
#include <stdbool.h>
#include <signal.h>

View file

@ -3,7 +3,7 @@
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <linux/limits.h>
#include <limits.h>
#include "history.h"
#include "90s.h"