-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 995 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
libraries= -lcrypto -lpthread
cxx = g++
files= SimpleYggGen.cpp
ncursesfiles=ncurses/field.c ncurses/ncurses-interface.c
ncursesoptions=-lform -lmenu -lncurses -fpermissive
programname=SimpleYggGen
CXFLAG=-std=gnu++11
GTKINTERFACENAME=interface
MINGWNCURSESWDIR=/home/user/ncursesw/
MINGWOPENSSLDIR=/home/user/openssl/
OPTIMIZATIONFLAG=-O3
c = gcc
GTKDIR=GTK
all: SimpleYggGen gtk
cp $(GTKDIR)/$(GTKINTERFACENAME) $(GTKDIR)/*.glade .
SimpleYggGen:
$(cxx) $(files) $(ncursesfiles) $(CXFLAG) $(libraries) $(ncursesoptions) $(OPTIMIZATIONFLAG) -o $(programname)
gtk:
cd $(GTKDIR) && make
clear:
rm $(programname) $(GTKINTERFACENAME) # GTK.glade
cd $(GTKDIR) && make clear
mingw32:
i686-w64-mingw32-g++-posix $(files) $(OPTIMIZATIONFLAG) $(ncursesfiles) -I$(MINGWNCURSESWDIR)/include/ -L$(MINGWNCURSESWDIR)/lib/ -lncursesw -lformw -lmenuw -fpermissive -I$(MINGWOPENSSLDIR)/include -L$(MINGWOPENSSLDIR) -lcrypto -lws2_32 -lpthread -static-libstdc++ -static-libgcc -l:libgomp.a