Last active
March 13, 2020 14:57
Star
You must be signed in to star a gist
sudoku/ver.1/main.c-makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ncurses.h> | |
#include "setting.h" | |
#include "calc.h" | |
#include "menu.h" | |
int main(void){ | |
startGame(); | |
reset(); | |
getch(); | |
menu(); | |
showAllTest(); | |
getch(); | |
endGame(); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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