Jump to content

makefile for Ultra App Kit


Josh
 Share

Recommended Posts

Posting this mostly for myself later...

OBJS = Source/UltraEngineHub.o Source/Libraries/PluginSDK/GMFSDK.o Source/Libraries/PluginSDK/MemReader.o Source/Libraries/PluginSDK/MemWriter.o Source/Libraries/PluginSDK/TextureInfo.o Source/Libraries/PluginSDK/Utilities.o Source/Libraries/PluginSDK/half/half.o Source/Libraries/s3tc-dxt-decompressionr/s3tc.o Source/Libraries/stb_dxt/stb_dxt.o Source/Classes/Object.o Source/Classes/Math/Math_.o Source/Classes/Math/Vec2.o Source/Classes/Math/Vec3.o Source/Classes/Math/Vec4.o Source/Classes/Math/iVec2.o Source/Classes/Math/iVec3.o Source/Classes/Math/iVec4.o Source/Classes/String.o Source/Classes/WString.o Source/Classes/Display.o Source/Classes/IDSystem.o Source/Classes/JSON.o Source/Functions.o Source/Classes/GUI/Event.o Source/Classes/GUI/EventQueue.o Source/Classes/Language.o Source/Classes/FileSystem/Stream.o Source/Classes/FileSystem/BufferStream.o Source/Classes/FileSystem/FileSystemWatcher.o Source/Classes/GameEngine.o Source/Classes/Clock.o Source/Classes/Buffer.o Source/Classes/GUI/Interface.o Source/Classes/GUI/Widget.o Source/Classes/GUI/Panel.o Source/Classes/GUI/Slider.o Source/Classes/GUI/Label.o Source/Classes/GUI/Button.o Source/Classes/GUI/TextField.o Source/Classes/GUI/TreeView.o Source/Classes/GUI/TextArea.o Source/Classes/GUI/Tabber.o Source/Classes/GUI/ListBox.o Source/Classes/GUI/ProgressBar.o Source/Classes/GUI/ComboBox.o Source/Classes/GUI/Menu.o Source/Classes/Window/XWindow.o Source/Classes/Timer.o Source/Classes/Process.o Source/Classes/FileSystem/StreamBuffer.o Source/Classes/Multithreading/Condition.o Source/Classes/Multithreading/Thread.o Source/Classes/Multithreading/Mutex.o Source/Classes/Loaders/Loader.o Source/Classes/Loaders/DDSTextureLoader.o Source/Classes/Assets/Asset.o Source/Classes/Plugin.o Source/Classes/Assets/Font.o Source/Classes/FileSystem/Package.o Source/Classes/Graphics/Pixmap.o Source/Classes/Graphics/Icon.o Source/InvisionPower.o
LIBOBJS = Source/Libraries/PluginSDK/GMFSDK.o Source/Libraries/PluginSDK/MemReader.o Source/Libraries/PluginSDK/MemWriter.o Source/Libraries/PluginSDK/TextureInfo.o Source/Libraries/PluginSDK/Utilities.o Source/Libraries/PluginSDK/half/half.o Source/Libraries/s3tc-dxt-decompressionr/s3tc.o Source/Libraries/stb_dxt/stb_dxt.o Source/Classes/Object.o Source/Classes/Math/Math_.o Source/Classes/Math/Vec2.o Source/Classes/Math/Vec3.o Source/Classes/Math/Vec4.o Source/Classes/Math/iVec2.o Source/Classes/Math/iVec3.o Source/Classes/Math/iVec4.o Source/Classes/String.o Source/Classes/WString.o Source/Classes/Display.o Source/Classes/IDSystem.o Source/Classes/JSON.o Source/Functions.o Source/Classes/GUI/Event.o Source/Classes/GUI/EventQueue.o Source/Classes/Language.o Source/Classes/FileSystem/Stream.o Source/Classes/FileSystem/BufferStream.o Source/Classes/FileSystem/FileSystemWatcher.o Source/Classes/GameEngine.o Source/Classes/Clock.o Source/Classes/Buffer.o Source/Classes/GUI/Interface.o Source/Classes/GUI/Widget.o Source/Classes/GUI/Panel.o Source/Classes/GUI/Slider.o Source/Classes/GUI/Label.o Source/Classes/GUI/Button.o Source/Classes/GUI/TextField.o Source/Classes/GUI/TreeView.o Source/Classes/GUI/TextArea.o Source/Classes/GUI/Tabber.o Source/Classes/GUI/ListBox.o Source/Classes/GUI/ProgressBar.o Source/Classes/GUI/ComboBox.o Source/Classes/GUI/Menu.o Source/Classes/Window/XWindow.o Source/Classes/Timer.o Source/Classes/Process.o Source/Classes/FileSystem/StreamBuffer.o Source/Classes/Multithreading/Thread.o Source/Classes/Multithreading/Mutex.o Source/Classes/Multithreading/Condition.o Source/Classes/Loaders/Loader.o Source/Classes/Loaders/DDSTextureLoader.o Source/Classes/Assets/Asset.o Source/Classes/Plugin.o Source/Classes/Assets/Font.o Source/Classes/FileSystem/Package.o Source/Classes/Graphics/Pixmap.o Source/Classes/Graphics/Icon.o
OBJS2DKIT = $(OBJS) Source/Classes/Graphics/Framebuffer.o
CC = g++
FLAGS = -w -c -Wall -I/usr/include/freetype2 -I/usr/include/fontconfig -ISource/ -D_ULTRA_APPKIT

# Build executable
LFLAGS = -no-pie -lX11 -lpthread -lXft -lXext -lXrender -lXcursor -ldl -lsteam_api -lcurl
OUT = AppKit

# Build library
#LIBFLAGS = -w -Wall -lX11 -lpthread -lXft -lXext -lXrender -lXcursor -ldl -Wall -I/usr/include/freetype2 -I/usr/include/fontconfig -ISource/ -D_ULTRA_APPKIT
LIBFLAGS = -w -Wall -I/usr/include/freetype2 -I/usr/include/fontconfig -ISource/ -D_ULTRA_APPKIT
LIBOUT = AppKit.o

AppKitLib: $(LIBOBJS)
	ld -relocatable $(LIBOBJS) -o Library/Linux/$(CONFIGNAME)/AppKit.o

%.o: %.cpp
	$(CC) -c $(LIBFLAGS) $(CONFIGFLAGS) $< -o $@

AppKit: $(OBJS)
	$(CC) $(CONFIGFLAGS) $(OBJS) -o $(OUT) $(LFLAGS)

%.o: %.cpp
	$(CC) $(FLAGS) $(CONFIGFLAGS) $< -o $@

2DKit: $(OBJS)
	$(CC) $(CONFIGFLAGS) $(OBJS) $(OBJS2DKIT) -o $(OUT) $(LFLAGS) -D_ULTRA_2DKIT

%.o: %.cpp
	$(CC) $(FLAGS) $(CONFIGFLAGS) $< -o $@

2DKitLib: $(LIBOBJS)
	ld -relocatable $(LIBOBJS) $(OBJS2DKIT) -o Library/Linux/$(CONFIGNAME)/AppKit.o -D_ULTRA_2DKIT

%.o: %.cpp
	$(CC) -c $(LIBFLAGS) $(CONFIGFLAGS) $< -o $@

clean:
	rm -f $(OBJS) $(OUT) Library/Linux/$(CONFIGNAME)/AppKit.o

 

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...