Renamed fltk package folder
[fltk_mvc_template.git] / _template / packages / fltk1.3 / Makefile
1 ############################################################################
2 # Workfile: Makefile
3 # Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
4 # Date: 03.12.2018
5 # Description: Universal Makefile for Unix based Operating Systems
6 ############################################################################
7 WORKDIR = $(shell pwd)
8
9 all: unpack windows clean linux
10
11 .PHONY: unpack
12 unpack:
13         tar xvzf fltk-1.3.4-1-source.tar.gz
14
15 .PHONY: windows
16 windows:
17         cd $(WORKDIR)/fltk-1.3.4-1; \
18         ./configure CFLAGS="-m32 -mwindows" CXXFLAGS="-m32 -mwindows" LDFLAGS="-m32 -static -static-libgcc -static-libstdc++ -lpthread" --host=i686-w64-mingw32 --enable-cygwin --enable-localjpeg --enable-localzlib --enable-localpng --disable-xcursor --disable-xinerama --disable-xft --disable-xdbe --disable-xrender --disable-xfixes; \
19         make -j4
20         mkdir -p $(WORKDIR)/../../include
21         mkdir -p $(WORKDIR)/../../lib/mingw32
22         cp -rf $(WORKDIR)/fltk-1.3.4-1/FL $(WORKDIR)/../../include
23         cp -rf $(WORKDIR)/fltk-1.3.4-1/lib/* $(WORKDIR)/../../lib/mingw32
24
25 .PHONY: linux
26 linux:
27         cd $(WORKDIR)/fltk-1.3.4-1; \
28         ./configure CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32 -static-libgcc -static-libstdc++" --enable-localjpeg --enable-localzlib --enable-localpng --disable-xcursor --disable-xinerama --disable-xft --disable-xdbe --disable-xrender --disable-xfixes; \
29         make -j4
30         mkdir -p $(WORKDIR)/../../include
31         mkdir -p $(WORKDIR)/../../lib/linux32
32         cp -rf $(WORKDIR)/fltk-1.3.4-1/FL $(WORKDIR)/../../include
33         cp -rf $(WORKDIR)/fltk-1.3.4-1/lib/* $(WORKDIR)/../../lib/linux32
34
35 .PHONY: clean
36 clean:
37         cd $(WORKDIR)/fltk-1.3.4-1; \
38         make clean