Skip to content

Instantly share code, notes, and snippets.

@oha-yashi
Last active March 13, 2020 14:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save oha-yashi/40ddeed8a25e8d16781dbb10cfc940ad to your computer and use it in GitHub Desktop.
sudoku/ver.1/main.c-makefile
#include <ncurses.h>
#include "setting.h"
#include "calc.h"
#include "menu.h"
int main(void){
startGame();
reset();
getch();
menu();
showAllTest();
getch();
endGame();
return 0;
}
MAKE_O = gcc -c $<
solveSudoku: main.o setting.o calc.o menu.o
gcc -lncurses -o $@ $^
main.o: main.c
$(MAKE_O)
setting.o: setting.c setting.h
$(MAKE_O)
calc.o: calc.c calc.h
$(MAKE_O)
menu.o: menu.c menu.h calc.h setting.h
$(MAKE_O)
clean:
rm *.o
do:
./solveSudoku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment