Compare commits

...

3 commits

Author SHA1 Message Date
Out Of Ideas
f58f5ef734 Finish Makefile (for now) 2024-05-08 20:27:59 -05:00
Out Of Ideas
7357d9eacd I really don't know what I changed 2024-05-08 20:27:24 -05:00
Out Of Ideas
6d42c22e63 Create a Makefile 2024-05-08 16:58:00 -05:00
2 changed files with 35 additions and 0 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
CC = cc
PREFIX = /usr/local
BIN = bin
LIBS = libs
quadrimino: main.o
$(CC) $(BIN)/main.o -o $(BIN)/quadrimino
main.o: main.c $(LIBS)/ini.h
$(CC) -c main.c -o $(BIN)/main.o
clean:
rm $(BIN)/*
install:
install -m 0755 $(BIN)/quadrimino $(PREFIX)/bin
mkdir -p $(PREFIX)/etc/quadrimino
install -m 0644 config.def.ini $(PREFIX)/etc/quadrimino/config.def.ini
uninstall:
rm $(PREFIX)/bin/quadrimino
rm -r $(PREFIX)/etc/quadrimino

13
main.c Normal file
View file

@ -0,0 +1,13 @@
/* Required to read config file */
#define INI_IMPLEMENTATION
#include "libs/ini.h"
/* Required for input handling and screen painting */
#include <curses.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
return 0;
}