21 lines
1.2 KiB
Makefile
21 lines
1.2 KiB
Makefile
|
netmapr: netmapr.c constants.h netmapr.h savepng.c savepng.h Makefile
|
||
|
gcc -I/opt/local/include -Wall -O2 -g netmapr.c savepng.c -o netmapr `sdl-config --libs --cflags` -L/usr/X11R6/lib -lpng -lX11 -lpthread -lXext -lSDL_ttf
|
||
|
ln -f netmapr netmapr-viewer
|
||
|
|
||
|
install: netmapr
|
||
|
install -C -o root -m 755 netmapr /usr/local/bin/netmapr
|
||
|
ln -f /usr/local/bin/netmapr /usr/local/bin/netmapr-viewer
|
||
|
install -C -o root -m 644 buttons.dat /usr/local/share/netmapr/buttons.dat
|
||
|
install -C -o root -m 644 objects.dat /usr/local/share/netmapr/objects.dat
|
||
|
install -C -o root -m 644 verdana.ttf /usr/local/share/netmapr/verdana.ttf
|
||
|
install -C -o root -m 644 icon.bmp /usr/local/share/netmapr/icon.bmp
|
||
|
|
||
|
clean: netmapr convert netmapr-viewer
|
||
|
rm -f netmapr convert netmapr-viewer
|
||
|
|
||
|
|
||
|
win: netmapr.c constants.h netmapr.h savepng.c savepng.h Makefile
|
||
|
/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc -mno-cygwin -Wall -DWINDOWS -o netmapr.exe -I /usr/local/i386-mingw32-4.3.0/include -I /opt/local/include -I /usr/local/i386-mingw32-4.3.0/include/SDL netmapr.c savepng.c -D_THREAD_SAFE -L/usr/local/i386-mingw32-4.3.0/lib -Ldlls -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_ttf -lmingw32 -lpng12-0
|
||
|
|
||
|
|