Add pdcurses support to Makefile

devel
Aadhavan Srinivasan 2 years ago
parent a12faeb9e3
commit 8b6957da01

@ -1,6 +1,15 @@
program3-4: program3-4.c texted.c fileman.c
sed -i 's/"pdcurses\/curses.h"/<ncurses.h>/g' texted.h
sed -i 's/"pdcurses\/curses.h"/<ncurses.h>/g' fileman.h
gcc program3-4.c texted.c fileman.c -o program3-4 -lncursest
.PHONY: full
.PHONY: full pdcurses
full:
./installfull.sh
make
pdcurses:
make program3-4-pdcurses
program3-4-pdcurses: program3-4.c texted.c fileman.c
sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' texted.h
sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' fileman.h
gcc -Og program3-4.c texted.c fileman.c -o program3-4-pdcurses pdcurses/sdl2/pdcurses.a -L/usr/lib -lSDL2

Loading…
Cancel
Save