mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-30 05:45:43 +00:00
Update all makefiles for linux to use (by include) a common base makefile as well as common makefiles for X and sdl. These included makefiles have the name linux-*.mk. Updated all linux makefiles to use the libbsd-overlay package, using pkg-config to set the appropriate flags. Updated CMakelists to also use the libbsd-overlay package via pkgconfig for Linux only. Finally added install targets to the CMakelists file so that cmake --install . will place the lde binaries into the appropriate directory in maiko as the makefiles currently do.
This commit is contained in:
@@ -1,29 +1,10 @@
|
||||
# Options for Linux, Intel x86_64 and SDL
|
||||
|
||||
CC = gcc -m64 $(GCC_CFLAGS)
|
||||
# CC = clang -m64 $(CLANG_CFLAGS)
|
||||
GCC_CFLAGS := -m64 $(GCC_CFLAGS)
|
||||
CLANG_CFLAGS := -m64 $(CLANG_CFLAGS)
|
||||
|
||||
XFILES = $(OBJECTDIR)sdl.o
|
||||
include linux-sdl.mk
|
||||
|
||||
#
|
||||
# For SDL version 2
|
||||
# -DSDL=2 in XFLAGS and -lSDL2 in LDFLAGS
|
||||
# For SDL version 3
|
||||
# -DSDL=3 in XFLAGS and -lSDL3 in LDFLAGS
|
||||
#
|
||||
XFLAGS = -DSDL=2
|
||||
|
||||
include makefile-linux-check-prerequisites
|
||||
BSD_CFLAGS = $(shell pkg-config --cflags libbsd-overlay)
|
||||
BSD_LDFLAGS = $(shell pkg-config --libs libbsd-overlay)
|
||||
|
||||
# OPTFLAGS is normally -O2.
|
||||
OPTFLAGS = -O2 -g3
|
||||
DFLAGS = $(XFLAGS) -DRELEASE=$(RELEASE) $(BSD_CFLAGS)
|
||||
|
||||
LDFLAGS = -lm -lSDL2 $(BSD_LDFLAGS)
|
||||
LDELDFLAGS = $(BSD_LDFLAGS)
|
||||
|
||||
OBJECTDIR = ../$(RELEASENAME)/
|
||||
include linux-common.mk
|
||||
|
||||
default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldesdl
|
||||
|
||||
Reference in New Issue
Block a user