adding my fucking makefile
This commit is contained in:
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