Skip to content

Commit

Permalink
Updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Sep 15, 2024
1 parent 27b8dbc commit 70c05f8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion make/paths.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ endif

LIBDIR := $(PREFIX)/lib
BINDIR := $(PREFIX)/bin
SHAREDDIR := $(PREFIX)/share
INCDIR := $(PREFIX)/include
BUILDDIR := $(BASEDIR)/.build
TARGET_BUILDDIR := $(BUILDDIR)/target
Expand All @@ -65,6 +64,15 @@ ifndef INCDIR
INCDIR := $(PREFIX)/include
endif

# Shared resources
ifndef SHAREDDIR
ifeq ($(PLATFORM),Haiku)
SHAREDDIR := $(PREFIX)/data
else
SHAREDDIR := $(PREFIX)/share
endif
endif

# Temporary directory
ifndef TEMPDIR
ifeq ($(PLATFORM),Windows)
Expand Down
2 changes: 2 additions & 0 deletions make/system.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ ifndef PLATFORM
PLATFORM := Linux
else ifeq ($(findstring SunOS,$(BUILD_SYSTEM)),SunOS)
PLATFORM := Solaris
else ifeq ($(findstring Haiku,$(BUILD_SYSTEM)),Haiku)
PLATFORM := Haiku
endif
endif

Expand Down
6 changes: 6 additions & 0 deletions make/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ else ifeq ($(PLATFORM),Windows)
EXE_FLAGS_EXT += -static-libgcc -static-libstdc++
SO_FLAGS_EXT += -static-libgcc -static-libstdc++
LDFLAGS_EXT += -T $(CURDIR)/make/ld-windows.script
else ifeq ($(PLATFORM),Haiku)
EXE_FLAGS_EXT += -L/system/lib -L/system/develop/lib
SO_FLAGS_EXT += -L/system/lib -L/system/develop/lib
CXXFLAGS_EXT += -D_GNU_SOURCE -D_BSD_SOURCE
CFLAGS_EXT += -D_GNU_SOURCE -D_BSD_SOURCE
LDFLAGS_EXT += -L/system/develop/lib/
else ifeq ($(PLATFORM),BSD)
EXE_FLAGS_EXT += -L/usr/local/lib
SO_FLAGS_EXT += -L/usr/local/lib
Expand Down

0 comments on commit 70c05f8

Please sign in to comment.