Added FLTK Makefile.
authorDaniel G <giri@nwrk.biz>
Fri, 28 Dec 2018 00:51:34 +0000 (01:51 +0100)
committerDaniel G <giri@nwrk.biz>
Fri, 28 Dec 2018 00:51:34 +0000 (01:51 +0100)
_template/packages/fltk/.gitignore
_template/packages/fltk/Makefile [new file with mode: 0644]

index c8e489f..1245055 100644 (file)
@@ -4,4 +4,4 @@
 # But not these files...
 !.gitignore
 !fltk-1.3.4-1-source.tar.gz
-!fltk.cbp
\ No newline at end of file
+!Makefile
diff --git a/_template/packages/fltk/Makefile b/_template/packages/fltk/Makefile
new file mode 100644 (file)
index 0000000..f8e806c
--- /dev/null
@@ -0,0 +1,38 @@
+############################################################################
+# Workfile: Makefile
+# Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
+# Date: 03.12.2018
+# Description: Universal Makefile for Unix based Operating Systems
+############################################################################
+WORKDIR = $(shell pwd)
+
+all: unpack windows clean linux
+
+.PHONY: unpack
+unpack:
+       tar xvzf fltk-1.3.4-1-source.tar.gz
+
+.PHONY: windows
+windows:
+       cd $(WORKDIR)/fltk-1.3.4-1; \
+       ./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; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/mingw32
+       cp -rf $(WORKDIR)/fltk-1.3.4-1/FL $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/fltk-1.3.4-1/lib/* $(WORKDIR)/../../lib/mingw32
+
+.PHONY: linux
+linux:
+       cd $(WORKDIR)/fltk-1.3.4-1; \
+       ./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; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/fltk-1.3.4-1/FL $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/fltk-1.3.4-1/lib/* $(WORKDIR)/../../lib/linux32
+
+.PHONY: clean
+clean:
+       cd $(WORKDIR)/fltk-1.3.4-1; \
+       make clean