|
|
@ -1,6 +1,7 @@
|
|
|
|
program3-4: program3-4.c texted.c fileman.c
|
|
|
|
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' texted.h
|
|
|
|
sed -i 's/"pdcurses\/curses.h"/<ncurses.h>/g' fileman.h
|
|
|
|
sed -i 's/"pdcurses\/curses.h"/<ncurses.h>/g' fileman.h
|
|
|
|
|
|
|
|
sed -i 's/for (int i=0,a=0;i<numCharsToPrint-1;i++,a++)/for (int i=0,a=0;i<numCharsToPrint;i++,a++)/g' program3-4.c
|
|
|
|
gcc program3-4.c texted.c fileman.c -o program3-4 -lncursest
|
|
|
|
gcc program3-4.c texted.c fileman.c -o program3-4 -lncursest
|
|
|
|
.PHONY: full pdcurses
|
|
|
|
.PHONY: full pdcurses
|
|
|
|
full:
|
|
|
|
full:
|
|
|
@ -11,5 +12,6 @@ pdcurses:
|
|
|
|
program3-4-pdcurses: program3-4.c texted.c fileman.c
|
|
|
|
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' texted.h
|
|
|
|
sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' fileman.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
|
|
|
|
sed -i 's/for (int i=0,a=0;i<numCharsToPrint;i++,a++)/for (int i=0,a=0;i<numCharsToPrint-1;i++,a++)/g' program3-4.c
|
|
|
|
|
|
|
|
gcc -g program3-4.c texted.c fileman.c -o program3-4-pdcurses pdcurses/sdl2/pdcurses.a -L/usr/lib -lSDL2
|
|
|
|
|
|
|
|
|
|
|
|