adding my fucking makefile
This commit is contained in:
87
Makefile
Normal file
87
Makefile
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
#Troy Rosin
|
||||||
|
|
||||||
|
CC =gcc
|
||||||
|
CFLAGS =-g
|
||||||
|
CPPFLAGS =-c -g -Wall -pedantic -Wextra
|
||||||
|
LDFLAGS =-lSDL2 -lm -lSDL2main -lSDL2_image
|
||||||
|
LDFLAGS +=-L/usr/local/lib -lSDL2_ttf
|
||||||
|
INCFLAGS = -I. -Iinclude
|
||||||
|
|
||||||
|
|
||||||
|
INC =include/
|
||||||
|
BIN =build/bin/
|
||||||
|
LIB =build/lib/
|
||||||
|
OBJ =build/obj/
|
||||||
|
DIRS =$(BIN) $(LIB) $(OBJ)
|
||||||
|
|
||||||
|
debug ?=on
|
||||||
|
ifeq ($(debug),on)
|
||||||
|
CPPFLAGS += -Ddebug
|
||||||
|
endif
|
||||||
|
|
||||||
|
BINARIES = game client_test server_test
|
||||||
|
|
||||||
|
all : $(BINARIES)
|
||||||
|
|
||||||
|
clean :
|
||||||
|
rm -rf build/ $(BINARIES)
|
||||||
|
|
||||||
|
$(DIRS) :
|
||||||
|
mkdir -p $@
|
||||||
|
|
||||||
|
## --- OBJECT FILES ---
|
||||||
|
#$(OBJ) : | $(OBJ)
|
||||||
|
# $(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)client_test.o : client_test.c | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)server_test.o : server_test.c | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)main.o : main.c $(INC)input.h $(INC)game.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)battle.o : battle.c $(INC)game.h $(INC)deck.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)input.o : input.c $(INC)input.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)host.o : host.c $(INC)host.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)join.o : join.c | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)options.o : options.c | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)game.o : game.c $(INC)game.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
$(OBJ)overworld.o : overworld.c $(INC)overworld.h | $(OBJ)
|
||||||
|
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## --- LIBRARY FILES ---
|
||||||
|
#$(LIB) : | $(LIB)
|
||||||
|
# ar rcs $@ $^
|
||||||
|
|
||||||
|
## --- EXECUTABLE FILES ---
|
||||||
|
#$(BIN) : $(OBJ) | $(BIN)
|
||||||
|
# $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
|
$(BIN)client_test : $(OBJ)client_test.o | $(BIN)
|
||||||
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
|
$(BIN)server_test: $(OBJ)server_test.o | $(BIN)
|
||||||
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
|
$(BIN)game : $(OBJ)main.o $(OBJ)input.o $(OBJ)battle.o $(OBJ)game.o\
|
||||||
|
$(OBJ)options.o $(OBJ)host.o $(OBJ)join.o $(OBJ)overworld.o | $(BIN)
|
||||||
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
$(BINARIES) : % : $(BIN)%
|
||||||
|
ln -sf $< $@
|
||||||
434
SDL2_net-2.2.0/build/Makefile
Normal file
434
SDL2_net-2.2.0/build/Makefile
Normal file
@@ -0,0 +1,434 @@
|
|||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "Unix Makefiles" Generator, CMake Version 4.2
|
||||||
|
|
||||||
|
# Default target executed when no arguments are given to make.
|
||||||
|
default_target: all
|
||||||
|
.PHONY : default_target
|
||||||
|
|
||||||
|
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||||
|
.NOTPARALLEL:
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets provided by cmake.
|
||||||
|
|
||||||
|
# Disable implicit rules so canonical targets will work.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : %,v
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : RCS/%
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : RCS/%,v
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : SCCS/s.%
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : s.%
|
||||||
|
|
||||||
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||||
|
|
||||||
|
# Command-line flag to silence nested $(MAKE).
|
||||||
|
$(VERBOSE)MAKESILENT = -s
|
||||||
|
|
||||||
|
#Suppress display of executed commands.
|
||||||
|
$(VERBOSE).SILENT:
|
||||||
|
|
||||||
|
# A target that is always out of date.
|
||||||
|
cmake_force:
|
||||||
|
.PHONY : cmake_force
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Set environment variables for the build.
|
||||||
|
|
||||||
|
# The shell in which to execute make rules.
|
||||||
|
SHELL = /bin/sh
|
||||||
|
|
||||||
|
# The CMake executable.
|
||||||
|
CMAKE_COMMAND = /snap/cmake/1509/bin/cmake
|
||||||
|
|
||||||
|
# The command to remove a file.
|
||||||
|
RM = /snap/cmake/1509/bin/cmake -E rm -f
|
||||||
|
|
||||||
|
# Escaping for special characters.
|
||||||
|
EQUALS = =
|
||||||
|
|
||||||
|
# The top-level source directory on which CMake was run.
|
||||||
|
CMAKE_SOURCE_DIR = /home/troy/game/shitgame/SDL2_net-2.2.0
|
||||||
|
|
||||||
|
# The top-level build directory on which CMake was run.
|
||||||
|
CMAKE_BINARY_DIR = /home/troy/game/shitgame/SDL2_net-2.2.0/build
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Targets provided globally by CMake.
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
|
||||||
|
/snap/cmake/1509/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||||
|
.PHONY : edit_cache
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache/fast: edit_cache
|
||||||
|
.PHONY : edit_cache/fast
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
|
||||||
|
/snap/cmake/1509/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||||
|
.PHONY : rebuild_cache
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache/fast: rebuild_cache
|
||||||
|
.PHONY : rebuild_cache/fast
|
||||||
|
|
||||||
|
# Special rule for the target list_install_components
|
||||||
|
list_install_components:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"devel\" \"library\""
|
||||||
|
.PHONY : list_install_components
|
||||||
|
|
||||||
|
# Special rule for the target list_install_components
|
||||||
|
list_install_components/fast: list_install_components
|
||||||
|
.PHONY : list_install_components/fast
|
||||||
|
|
||||||
|
# Special rule for the target install
|
||||||
|
install: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
||||||
|
/snap/cmake/1509/bin/cmake -P cmake_install.cmake
|
||||||
|
.PHONY : install
|
||||||
|
|
||||||
|
# Special rule for the target install
|
||||||
|
install/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
||||||
|
/snap/cmake/1509/bin/cmake -P cmake_install.cmake
|
||||||
|
.PHONY : install/fast
|
||||||
|
|
||||||
|
# Special rule for the target install/local
|
||||||
|
install/local: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/local
|
||||||
|
|
||||||
|
# Special rule for the target install/local
|
||||||
|
install/local/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/local/fast
|
||||||
|
|
||||||
|
# Special rule for the target install/strip
|
||||||
|
install/strip: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/strip
|
||||||
|
|
||||||
|
# Special rule for the target install/strip
|
||||||
|
install/strip/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/strip/fast
|
||||||
|
|
||||||
|
# The main all target
|
||||||
|
all: cmake_check_build_system
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start /home/troy/game/shitgame/SDL2_net-2.2.0/build/CMakeFiles /home/troy/game/shitgame/SDL2_net-2.2.0/build//CMakeFiles/progress.marks
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start /home/troy/game/shitgame/SDL2_net-2.2.0/build/CMakeFiles 0
|
||||||
|
.PHONY : all
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
||||||
|
.PHONY : clean
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean/fast: clean
|
||||||
|
.PHONY : clean/fast
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall: all
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||||
|
.PHONY : preinstall
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||||
|
.PHONY : preinstall/fast
|
||||||
|
|
||||||
|
# clear depends
|
||||||
|
depend:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||||
|
.PHONY : depend
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named SDL2_net
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
SDL2_net: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 SDL2_net
|
||||||
|
.PHONY : SDL2_net
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
SDL2_net/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/build
|
||||||
|
.PHONY : SDL2_net/fast
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named showinterfaces
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
showinterfaces: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 showinterfaces
|
||||||
|
.PHONY : showinterfaces
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
showinterfaces/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showinterfaces.dir/build.make CMakeFiles/showinterfaces.dir/build
|
||||||
|
.PHONY : showinterfaces/fast
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named chat
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
chat: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 chat
|
||||||
|
.PHONY : chat
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
chat/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chat.dir/build.make CMakeFiles/chat.dir/build
|
||||||
|
.PHONY : chat/fast
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named chatd
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
chatd: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 chatd
|
||||||
|
.PHONY : chatd
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
chatd/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chatd.dir/build.make CMakeFiles/chatd.dir/build
|
||||||
|
.PHONY : chatd/fast
|
||||||
|
|
||||||
|
SDLnet.o: SDLnet.c.o
|
||||||
|
.PHONY : SDLnet.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
SDLnet.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnet.c.o
|
||||||
|
.PHONY : SDLnet.c.o
|
||||||
|
|
||||||
|
SDLnet.i: SDLnet.c.i
|
||||||
|
.PHONY : SDLnet.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
SDLnet.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnet.c.i
|
||||||
|
.PHONY : SDLnet.c.i
|
||||||
|
|
||||||
|
SDLnet.s: SDLnet.c.s
|
||||||
|
.PHONY : SDLnet.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
SDLnet.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnet.c.s
|
||||||
|
.PHONY : SDLnet.c.s
|
||||||
|
|
||||||
|
SDLnetTCP.o: SDLnetTCP.c.o
|
||||||
|
.PHONY : SDLnetTCP.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
SDLnetTCP.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetTCP.c.o
|
||||||
|
.PHONY : SDLnetTCP.c.o
|
||||||
|
|
||||||
|
SDLnetTCP.i: SDLnetTCP.c.i
|
||||||
|
.PHONY : SDLnetTCP.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
SDLnetTCP.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetTCP.c.i
|
||||||
|
.PHONY : SDLnetTCP.c.i
|
||||||
|
|
||||||
|
SDLnetTCP.s: SDLnetTCP.c.s
|
||||||
|
.PHONY : SDLnetTCP.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
SDLnetTCP.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetTCP.c.s
|
||||||
|
.PHONY : SDLnetTCP.c.s
|
||||||
|
|
||||||
|
SDLnetUDP.o: SDLnetUDP.c.o
|
||||||
|
.PHONY : SDLnetUDP.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
SDLnetUDP.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetUDP.c.o
|
||||||
|
.PHONY : SDLnetUDP.c.o
|
||||||
|
|
||||||
|
SDLnetUDP.i: SDLnetUDP.c.i
|
||||||
|
.PHONY : SDLnetUDP.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
SDLnetUDP.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetUDP.c.i
|
||||||
|
.PHONY : SDLnetUDP.c.i
|
||||||
|
|
||||||
|
SDLnetUDP.s: SDLnetUDP.c.s
|
||||||
|
.PHONY : SDLnetUDP.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
SDLnetUDP.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetUDP.c.s
|
||||||
|
.PHONY : SDLnetUDP.c.s
|
||||||
|
|
||||||
|
SDLnetselect.o: SDLnetselect.c.o
|
||||||
|
.PHONY : SDLnetselect.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
SDLnetselect.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetselect.c.o
|
||||||
|
.PHONY : SDLnetselect.c.o
|
||||||
|
|
||||||
|
SDLnetselect.i: SDLnetselect.c.i
|
||||||
|
.PHONY : SDLnetselect.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
SDLnetselect.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetselect.c.i
|
||||||
|
.PHONY : SDLnetselect.c.i
|
||||||
|
|
||||||
|
SDLnetselect.s: SDLnetselect.c.s
|
||||||
|
.PHONY : SDLnetselect.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
SDLnetselect.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_net.dir/build.make CMakeFiles/SDL2_net.dir/SDLnetselect.c.s
|
||||||
|
.PHONY : SDLnetselect.c.s
|
||||||
|
|
||||||
|
chat.o: chat.c.o
|
||||||
|
.PHONY : chat.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
chat.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chat.dir/build.make CMakeFiles/chat.dir/chat.c.o
|
||||||
|
.PHONY : chat.c.o
|
||||||
|
|
||||||
|
chat.i: chat.c.i
|
||||||
|
.PHONY : chat.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
chat.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chat.dir/build.make CMakeFiles/chat.dir/chat.c.i
|
||||||
|
.PHONY : chat.c.i
|
||||||
|
|
||||||
|
chat.s: chat.c.s
|
||||||
|
.PHONY : chat.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
chat.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chat.dir/build.make CMakeFiles/chat.dir/chat.c.s
|
||||||
|
.PHONY : chat.c.s
|
||||||
|
|
||||||
|
chatd.o: chatd.c.o
|
||||||
|
.PHONY : chatd.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
chatd.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chatd.dir/build.make CMakeFiles/chatd.dir/chatd.c.o
|
||||||
|
.PHONY : chatd.c.o
|
||||||
|
|
||||||
|
chatd.i: chatd.c.i
|
||||||
|
.PHONY : chatd.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
chatd.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chatd.dir/build.make CMakeFiles/chatd.dir/chatd.c.i
|
||||||
|
.PHONY : chatd.c.i
|
||||||
|
|
||||||
|
chatd.s: chatd.c.s
|
||||||
|
.PHONY : chatd.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
chatd.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/chatd.dir/build.make CMakeFiles/chatd.dir/chatd.c.s
|
||||||
|
.PHONY : chatd.c.s
|
||||||
|
|
||||||
|
showinterfaces.o: showinterfaces.c.o
|
||||||
|
.PHONY : showinterfaces.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
showinterfaces.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showinterfaces.dir/build.make CMakeFiles/showinterfaces.dir/showinterfaces.c.o
|
||||||
|
.PHONY : showinterfaces.c.o
|
||||||
|
|
||||||
|
showinterfaces.i: showinterfaces.c.i
|
||||||
|
.PHONY : showinterfaces.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
showinterfaces.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showinterfaces.dir/build.make CMakeFiles/showinterfaces.dir/showinterfaces.c.i
|
||||||
|
.PHONY : showinterfaces.c.i
|
||||||
|
|
||||||
|
showinterfaces.s: showinterfaces.c.s
|
||||||
|
.PHONY : showinterfaces.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
showinterfaces.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showinterfaces.dir/build.make CMakeFiles/showinterfaces.dir/showinterfaces.c.s
|
||||||
|
.PHONY : showinterfaces.c.s
|
||||||
|
|
||||||
|
# Help Target
|
||||||
|
help:
|
||||||
|
@echo "The following are some of the valid targets for this Makefile:"
|
||||||
|
@echo "... all (the default if no target is provided)"
|
||||||
|
@echo "... clean"
|
||||||
|
@echo "... depend"
|
||||||
|
@echo "... edit_cache"
|
||||||
|
@echo "... install"
|
||||||
|
@echo "... install/local"
|
||||||
|
@echo "... install/strip"
|
||||||
|
@echo "... list_install_components"
|
||||||
|
@echo "... rebuild_cache"
|
||||||
|
@echo "... SDL2_net"
|
||||||
|
@echo "... chat"
|
||||||
|
@echo "... chatd"
|
||||||
|
@echo "... showinterfaces"
|
||||||
|
@echo "... SDLnet.o"
|
||||||
|
@echo "... SDLnet.i"
|
||||||
|
@echo "... SDLnet.s"
|
||||||
|
@echo "... SDLnetTCP.o"
|
||||||
|
@echo "... SDLnetTCP.i"
|
||||||
|
@echo "... SDLnetTCP.s"
|
||||||
|
@echo "... SDLnetUDP.o"
|
||||||
|
@echo "... SDLnetUDP.i"
|
||||||
|
@echo "... SDLnetUDP.s"
|
||||||
|
@echo "... SDLnetselect.o"
|
||||||
|
@echo "... SDLnetselect.i"
|
||||||
|
@echo "... SDLnetselect.s"
|
||||||
|
@echo "... chat.o"
|
||||||
|
@echo "... chat.i"
|
||||||
|
@echo "... chat.s"
|
||||||
|
@echo "... chatd.o"
|
||||||
|
@echo "... chatd.i"
|
||||||
|
@echo "... chatd.s"
|
||||||
|
@echo "... showinterfaces.o"
|
||||||
|
@echo "... showinterfaces.i"
|
||||||
|
@echo "... showinterfaces.s"
|
||||||
|
.PHONY : help
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets to cleanup operation of make.
|
||||||
|
|
||||||
|
# Special rule to run CMake to check the build system integrity.
|
||||||
|
# No rule that depends on this can have commands that come from listfiles
|
||||||
|
# because they might be regenerated.
|
||||||
|
cmake_check_build_system:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||||
|
.PHONY : cmake_check_build_system
|
||||||
|
|
||||||
312
SDL2_ttf/build/Makefile
Normal file
312
SDL2_ttf/build/Makefile
Normal file
@@ -0,0 +1,312 @@
|
|||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "Unix Makefiles" Generator, CMake Version 4.2
|
||||||
|
|
||||||
|
# Default target executed when no arguments are given to make.
|
||||||
|
default_target: all
|
||||||
|
.PHONY : default_target
|
||||||
|
|
||||||
|
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||||
|
.NOTPARALLEL:
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets provided by cmake.
|
||||||
|
|
||||||
|
# Disable implicit rules so canonical targets will work.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : %,v
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : RCS/%
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : RCS/%,v
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : SCCS/s.%
|
||||||
|
|
||||||
|
# Disable VCS-based implicit rules.
|
||||||
|
% : s.%
|
||||||
|
|
||||||
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||||
|
|
||||||
|
# Command-line flag to silence nested $(MAKE).
|
||||||
|
$(VERBOSE)MAKESILENT = -s
|
||||||
|
|
||||||
|
#Suppress display of executed commands.
|
||||||
|
$(VERBOSE).SILENT:
|
||||||
|
|
||||||
|
# A target that is always out of date.
|
||||||
|
cmake_force:
|
||||||
|
.PHONY : cmake_force
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Set environment variables for the build.
|
||||||
|
|
||||||
|
# The shell in which to execute make rules.
|
||||||
|
SHELL = /bin/sh
|
||||||
|
|
||||||
|
# The CMake executable.
|
||||||
|
CMAKE_COMMAND = /snap/cmake/1509/bin/cmake
|
||||||
|
|
||||||
|
# The command to remove a file.
|
||||||
|
RM = /snap/cmake/1509/bin/cmake -E rm -f
|
||||||
|
|
||||||
|
# Escaping for special characters.
|
||||||
|
EQUALS = =
|
||||||
|
|
||||||
|
# The top-level source directory on which CMake was run.
|
||||||
|
CMAKE_SOURCE_DIR = /home/troy/game/shitgame/SDL2_ttf
|
||||||
|
|
||||||
|
# The top-level build directory on which CMake was run.
|
||||||
|
CMAKE_BINARY_DIR = /home/troy/game/shitgame/SDL2_ttf/build
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Targets provided globally by CMake.
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
|
||||||
|
/snap/cmake/1509/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||||
|
.PHONY : edit_cache
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache/fast: edit_cache
|
||||||
|
.PHONY : edit_cache/fast
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
|
||||||
|
/snap/cmake/1509/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||||
|
.PHONY : rebuild_cache
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache/fast: rebuild_cache
|
||||||
|
.PHONY : rebuild_cache/fast
|
||||||
|
|
||||||
|
# Special rule for the target list_install_components
|
||||||
|
list_install_components:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"devel\" \"library\""
|
||||||
|
.PHONY : list_install_components
|
||||||
|
|
||||||
|
# Special rule for the target list_install_components
|
||||||
|
list_install_components/fast: list_install_components
|
||||||
|
.PHONY : list_install_components/fast
|
||||||
|
|
||||||
|
# Special rule for the target install
|
||||||
|
install: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
||||||
|
/snap/cmake/1509/bin/cmake -P cmake_install.cmake
|
||||||
|
.PHONY : install
|
||||||
|
|
||||||
|
# Special rule for the target install
|
||||||
|
install/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
||||||
|
/snap/cmake/1509/bin/cmake -P cmake_install.cmake
|
||||||
|
.PHONY : install/fast
|
||||||
|
|
||||||
|
# Special rule for the target install/local
|
||||||
|
install/local: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/local
|
||||||
|
|
||||||
|
# Special rule for the target install/local
|
||||||
|
install/local/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/local/fast
|
||||||
|
|
||||||
|
# Special rule for the target install/strip
|
||||||
|
install/strip: preinstall
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/strip
|
||||||
|
|
||||||
|
# Special rule for the target install/strip
|
||||||
|
install/strip/fast: preinstall/fast
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
||||||
|
/snap/cmake/1509/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||||
|
.PHONY : install/strip/fast
|
||||||
|
|
||||||
|
# The main all target
|
||||||
|
all: cmake_check_build_system
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start /home/troy/game/shitgame/SDL2_ttf/build/CMakeFiles /home/troy/game/shitgame/SDL2_ttf/build//CMakeFiles/progress.marks
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start /home/troy/game/shitgame/SDL2_ttf/build/CMakeFiles 0
|
||||||
|
.PHONY : all
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
||||||
|
.PHONY : clean
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean/fast: clean
|
||||||
|
.PHONY : clean/fast
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall: all
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||||
|
.PHONY : preinstall
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||||
|
.PHONY : preinstall/fast
|
||||||
|
|
||||||
|
# clear depends
|
||||||
|
depend:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||||
|
.PHONY : depend
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named SDL2_ttf
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
SDL2_ttf: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 SDL2_ttf
|
||||||
|
.PHONY : SDL2_ttf
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
SDL2_ttf/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_ttf.dir/build.make CMakeFiles/SDL2_ttf.dir/build
|
||||||
|
.PHONY : SDL2_ttf/fast
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named glfont
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
glfont: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 glfont
|
||||||
|
.PHONY : glfont
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
glfont/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/glfont.dir/build.make CMakeFiles/glfont.dir/build
|
||||||
|
.PHONY : glfont/fast
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named showfont
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
showfont: cmake_check_build_system
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 showfont
|
||||||
|
.PHONY : showfont
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
showfont/fast:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showfont.dir/build.make CMakeFiles/showfont.dir/build
|
||||||
|
.PHONY : showfont/fast
|
||||||
|
|
||||||
|
SDL_ttf.o: SDL_ttf.c.o
|
||||||
|
.PHONY : SDL_ttf.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
SDL_ttf.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_ttf.dir/build.make CMakeFiles/SDL2_ttf.dir/SDL_ttf.c.o
|
||||||
|
.PHONY : SDL_ttf.c.o
|
||||||
|
|
||||||
|
SDL_ttf.i: SDL_ttf.c.i
|
||||||
|
.PHONY : SDL_ttf.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
SDL_ttf.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_ttf.dir/build.make CMakeFiles/SDL2_ttf.dir/SDL_ttf.c.i
|
||||||
|
.PHONY : SDL_ttf.c.i
|
||||||
|
|
||||||
|
SDL_ttf.s: SDL_ttf.c.s
|
||||||
|
.PHONY : SDL_ttf.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
SDL_ttf.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/SDL2_ttf.dir/build.make CMakeFiles/SDL2_ttf.dir/SDL_ttf.c.s
|
||||||
|
.PHONY : SDL_ttf.c.s
|
||||||
|
|
||||||
|
glfont.o: glfont.c.o
|
||||||
|
.PHONY : glfont.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
glfont.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/glfont.dir/build.make CMakeFiles/glfont.dir/glfont.c.o
|
||||||
|
.PHONY : glfont.c.o
|
||||||
|
|
||||||
|
glfont.i: glfont.c.i
|
||||||
|
.PHONY : glfont.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
glfont.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/glfont.dir/build.make CMakeFiles/glfont.dir/glfont.c.i
|
||||||
|
.PHONY : glfont.c.i
|
||||||
|
|
||||||
|
glfont.s: glfont.c.s
|
||||||
|
.PHONY : glfont.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
glfont.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/glfont.dir/build.make CMakeFiles/glfont.dir/glfont.c.s
|
||||||
|
.PHONY : glfont.c.s
|
||||||
|
|
||||||
|
showfont.o: showfont.c.o
|
||||||
|
.PHONY : showfont.o
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
showfont.c.o:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showfont.dir/build.make CMakeFiles/showfont.dir/showfont.c.o
|
||||||
|
.PHONY : showfont.c.o
|
||||||
|
|
||||||
|
showfont.i: showfont.c.i
|
||||||
|
.PHONY : showfont.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
showfont.c.i:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showfont.dir/build.make CMakeFiles/showfont.dir/showfont.c.i
|
||||||
|
.PHONY : showfont.c.i
|
||||||
|
|
||||||
|
showfont.s: showfont.c.s
|
||||||
|
.PHONY : showfont.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
showfont.c.s:
|
||||||
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/showfont.dir/build.make CMakeFiles/showfont.dir/showfont.c.s
|
||||||
|
.PHONY : showfont.c.s
|
||||||
|
|
||||||
|
# Help Target
|
||||||
|
help:
|
||||||
|
@echo "The following are some of the valid targets for this Makefile:"
|
||||||
|
@echo "... all (the default if no target is provided)"
|
||||||
|
@echo "... clean"
|
||||||
|
@echo "... depend"
|
||||||
|
@echo "... edit_cache"
|
||||||
|
@echo "... install"
|
||||||
|
@echo "... install/local"
|
||||||
|
@echo "... install/strip"
|
||||||
|
@echo "... list_install_components"
|
||||||
|
@echo "... rebuild_cache"
|
||||||
|
@echo "... SDL2_ttf"
|
||||||
|
@echo "... glfont"
|
||||||
|
@echo "... showfont"
|
||||||
|
@echo "... SDL_ttf.o"
|
||||||
|
@echo "... SDL_ttf.i"
|
||||||
|
@echo "... SDL_ttf.s"
|
||||||
|
@echo "... glfont.o"
|
||||||
|
@echo "... glfont.i"
|
||||||
|
@echo "... glfont.s"
|
||||||
|
@echo "... showfont.o"
|
||||||
|
@echo "... showfont.i"
|
||||||
|
@echo "... showfont.s"
|
||||||
|
.PHONY : help
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets to cleanup operation of make.
|
||||||
|
|
||||||
|
# Special rule to run CMake to check the build system integrity.
|
||||||
|
# No rule that depends on this can have commands that come from listfiles
|
||||||
|
# because they might be regenerated.
|
||||||
|
cmake_check_build_system:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||||
|
.PHONY : cmake_check_build_system
|
||||||
|
|
||||||
34
SDL2_ttf/external/freetype/Makefile
vendored
Normal file
34
SDL2_ttf/external/freetype/Makefile
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#
|
||||||
|
# FreeType 2 build system -- top-level Makefile
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# Copyright (C) 1996-2023 by
|
||||||
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||||
|
#
|
||||||
|
# This file is part of the FreeType project, and may only be used, modified,
|
||||||
|
# and distributed under the terms of the FreeType project license,
|
||||||
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
||||||
|
# indicate that you have read the license and understand and accept it
|
||||||
|
# fully.
|
||||||
|
|
||||||
|
|
||||||
|
# Project names
|
||||||
|
#
|
||||||
|
PROJECT := freetype
|
||||||
|
PROJECT_TITLE := FreeType
|
||||||
|
|
||||||
|
# The variable TOP_DIR holds the path to the topmost directory in the project
|
||||||
|
# engine source hierarchy. If it is not defined, default it to `.'.
|
||||||
|
#
|
||||||
|
TOP_DIR ?= .
|
||||||
|
|
||||||
|
# The variable OBJ_DIR gives the location where object files and the
|
||||||
|
# FreeType library are built.
|
||||||
|
#
|
||||||
|
OBJ_DIR ?= $(TOP_DIR)/objs
|
||||||
|
|
||||||
|
|
||||||
|
include $(TOP_DIR)/builds/toplevel.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
45
SDL2_ttf/external/freetype/src/tools/ftrandom/Makefile
vendored
Normal file
45
SDL2_ttf/external/freetype/src/tools/ftrandom/Makefile
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# TOP_DIR and OBJ_DIR should be set by the user to the right directories,
|
||||||
|
# if necessary.
|
||||||
|
|
||||||
|
TOP_DIR ?= ../../..
|
||||||
|
OBJ_DIR ?= $(TOP_DIR)/objs
|
||||||
|
|
||||||
|
|
||||||
|
# The setup below is for gcc on a Unix-like platform,
|
||||||
|
# where FreeType has been set up to create a static library
|
||||||
|
# (which is the default).
|
||||||
|
|
||||||
|
VPATH = $(OBJ_DIR) \
|
||||||
|
$(OBJ_DIR)/.libs
|
||||||
|
|
||||||
|
SRC_DIR = $(TOP_DIR)/src/tools/ftrandom
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
WFLAGS = -Wmissing-prototypes \
|
||||||
|
-Wunused \
|
||||||
|
-Wimplicit \
|
||||||
|
-Wreturn-type \
|
||||||
|
-Wparentheses \
|
||||||
|
-pedantic \
|
||||||
|
-Wformat \
|
||||||
|
-Wchar-subscripts \
|
||||||
|
-Wsequence-point
|
||||||
|
CFLAGS = $(WFLAGS) \
|
||||||
|
-g
|
||||||
|
INCLUDES = -I $(TOP_DIR)/include
|
||||||
|
LDFLAGS =
|
||||||
|
LIBS = -lm \
|
||||||
|
-lz \
|
||||||
|
-lpng \
|
||||||
|
-lbz2 \
|
||||||
|
-lharfbuzz
|
||||||
|
|
||||||
|
all: $(OBJ_DIR)/ftrandom
|
||||||
|
|
||||||
|
$(OBJ_DIR)/ftrandom.o: $(SRC_DIR)/ftrandom.c
|
||||||
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
|
||||||
|
|
||||||
|
$(OBJ_DIR)/ftrandom: $(OBJ_DIR)/ftrandom.o libfreetype.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||||
|
|
||||||
|
# EOF
|
||||||
28
SDL2_ttf/external/harfbuzz/src/wasm/graphite/Makefile
vendored
Normal file
28
SDL2_ttf/external/harfbuzz/src/wasm/graphite/Makefile
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
FONTS = CharisSIL-R.wasm.ttf Scheherazade-R.wasm.ttf AwamiNastaliq-Regular.wasm.ttf
|
||||||
|
ADD_TABLE = ../../addTable.py
|
||||||
|
|
||||||
|
all: $(FONTS)
|
||||||
|
|
||||||
|
%.wasm: %.cc ../../hb-wasm-api.h
|
||||||
|
emcc \
|
||||||
|
-I ../.. \
|
||||||
|
-I ~/graphite/include/ \
|
||||||
|
-fvisibility=hidden \
|
||||||
|
-Wl,--allow-undefined \
|
||||||
|
-Wl,--no-entry \
|
||||||
|
-Wl,--strip-all \
|
||||||
|
-sERROR_ON_UNDEFINED_SYMBOLS=0 \
|
||||||
|
-Wl,--export=malloc -Wl,--export=free \
|
||||||
|
~/graphite/src/libgraphite2.a \
|
||||||
|
~/wasm/wasi-sdk-19.0/share/wasi-sysroot/lib/wasm32-wasi/libc.a \
|
||||||
|
$< \
|
||||||
|
-o $@
|
||||||
|
|
||||||
|
|
||||||
|
%.wasm.ttf: %.ttf shape.wasm $(ADD_TABLE)
|
||||||
|
python $(ADD_TABLE) $< $@ shape.wasm
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) shape.wasm $(FONTS)
|
||||||
|
|
||||||
|
.PRECIOUS: shape.wasm
|
||||||
25
SDL2_ttf/external/harfbuzz/src/wasm/sample/c/Makefile
vendored
Normal file
25
SDL2_ttf/external/harfbuzz/src/wasm/sample/c/Makefile
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
ADD_TABLE = ../../../addTable.py
|
||||||
|
|
||||||
|
all: test-fallback.wasm.ttf test-ot.wasm.ttf
|
||||||
|
|
||||||
|
%.wasm: %.cc ../../../hb-wasm-api.h
|
||||||
|
clang \
|
||||||
|
--target=wasm32-unknown-wasi \
|
||||||
|
-Wl,--no-entry \
|
||||||
|
-fvisibility=hidden \
|
||||||
|
-Wl,--allow-undefined \
|
||||||
|
-nostdlib \
|
||||||
|
-I ../../.. \
|
||||||
|
$< \
|
||||||
|
-o $@
|
||||||
|
|
||||||
|
test-fallback.wasm.ttf: test.ttf shape-fallback.wasm $(ADD_TABLE)
|
||||||
|
python $(ADD_TABLE) $< $@ shape-fallback.wasm
|
||||||
|
|
||||||
|
test-ot.wasm.ttf: test.ttf shape-ot.wasm $(ADD_TABLE)
|
||||||
|
python $(ADD_TABLE) $< $@ shape-ot.wasm
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) test-fallback.wasm.ttf test-ot.wasm.ttf shape-fallback.wasm shape-ot.wasm
|
||||||
|
|
||||||
|
.PRECIOUS: *.wasm
|
||||||
32
SDL2_ttf/mingw/pkg-support/Makefile
Normal file
32
SDL2_ttf/mingw/pkg-support/Makefile
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
#
|
||||||
|
# Makefile for installing the mingw32 version of the SDL2_ttf library
|
||||||
|
|
||||||
|
CROSS_PATH := /usr/local
|
||||||
|
ARCHITECTURES := i686-w64-mingw32 x86_64-w64-mingw32
|
||||||
|
|
||||||
|
all install:
|
||||||
|
@echo "Type \"make native\" to install 32-bit to /usr"
|
||||||
|
@echo "Type \"make cross\" to install 32-bit and 64-bit to $(CROSS_PATH)"
|
||||||
|
|
||||||
|
native:
|
||||||
|
make install-package arch=i686-w64-mingw32 prefix=/usr
|
||||||
|
|
||||||
|
cross:
|
||||||
|
mkdir -p $(CROSS_PATH)/cmake
|
||||||
|
cp -rv cmake/* $(CROSS_PATH)/cmake
|
||||||
|
for arch in $(ARCHITECTURES); do \
|
||||||
|
make install-package arch=$$arch prefix=$(CROSS_PATH)/$$arch; \
|
||||||
|
done
|
||||||
|
|
||||||
|
install-package:
|
||||||
|
@if test -d $(arch) && test -d $(prefix); then \
|
||||||
|
(cd $(arch) && cp -rv bin include lib $(prefix)/); \
|
||||||
|
sed "s|^prefix=.*|prefix=\'$(prefix)\'|" <$(arch)/lib/pkgconfig/SDL2_ttf.pc >$(prefix)/lib/pkgconfig/SDL2_ttf.pc; \
|
||||||
|
sed "s|^libdir=.*|libdir=\'$(prefix)/lib\'|" <$(arch)/lib/libSDL2_ttf.la >$(prefix)/lib/libSDL2_ttf.la; \
|
||||||
|
sed -e "s|^set[(]bindir \".*|set(bindir \"$(prefix)/bin\")|" \
|
||||||
|
-e "s|^set[(]includedir \".*|set(includedir \"$(prefix)/include\")|" \
|
||||||
|
-e "s|^set[(]libdir \".*|set(libdir \"$(prefix)/lib\")|" <$(arch)/lib/cmake/SDL2_ttf/sdl2_ttf-config.cmake >$(prefix)/lib/cmake/SDL2_ttf/sdl2_ttf-config.cmake; \
|
||||||
|
else \
|
||||||
|
echo "*** ERROR: $(arch) or $(prefix) does not exist!"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user