Compare commits
3 commits
4043ebcdb1
...
f58f5ef734
Author | SHA1 | Date | |
---|---|---|---|
|
f58f5ef734 | ||
|
7357d9eacd | ||
|
6d42c22e63 |
2 changed files with 35 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal 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
13
main.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue