2013-01-08 19:32:41 +00:00
|
|
|
ifndef inc_main
|
|
|
|
inc_main := 1
|
|
|
|
|
2014-04-11 09:32:28 +00:00
|
|
|
ifdef RELEASE
|
|
|
|
configFilename := imagine$(libNameExt)-config.h
|
|
|
|
else
|
|
|
|
configFilename := imagine$(libNameExt)-debug-config.h
|
|
|
|
endif
|
|
|
|
|
2013-01-08 19:32:41 +00:00
|
|
|
include $(IMAGINE_PATH)/make/imagineStaticLibBase.mk
|
|
|
|
|
2014-04-11 09:32:28 +00:00
|
|
|
imagineSrcDir := $(projectPath)/src
|
2013-01-08 19:32:41 +00:00
|
|
|
|
|
|
|
include $(imagineSrcDir)/audio/system.mk
|
|
|
|
include $(imagineSrcDir)/input/system.mk
|
|
|
|
include $(imagineSrcDir)/gfx/system.mk
|
|
|
|
include $(imagineSrcDir)/fs/system.mk
|
2015-09-30 21:26:41 +00:00
|
|
|
include $(imagineSrcDir)/fs/ArchiveFS.mk
|
2013-01-08 19:32:41 +00:00
|
|
|
include $(imagineSrcDir)/io/system.mk
|
2014-10-20 03:50:39 +00:00
|
|
|
include $(imagineSrcDir)/io/MapIO.mk
|
2013-01-08 19:32:41 +00:00
|
|
|
include $(imagineSrcDir)/bluetooth/system.mk
|
2015-08-23 15:38:20 +00:00
|
|
|
include $(imagineSrcDir)/gui/gui.mk
|
2016-09-01 03:19:33 +00:00
|
|
|
include $(imagineSrcDir)/font/system.mk
|
2014-04-11 09:32:28 +00:00
|
|
|
include $(imagineSrcDir)/data-type/image/system.mk
|
2023-04-13 09:43:22 +00:00
|
|
|
include $(imagineSrcDir)/thread/system.mk
|
2020-09-29 09:04:05 +00:00
|
|
|
include $(imagineSrcDir)/vmem/system.mk
|
2014-04-11 09:32:28 +00:00
|
|
|
include $(imagineSrcDir)/logger/system.mk
|
|
|
|
include $(buildSysPath)/package/stdc++.mk
|
2013-01-08 19:32:41 +00:00
|
|
|
|
2014-04-11 09:32:28 +00:00
|
|
|
libName := imagine$(libNameExt)
|
|
|
|
ifndef RELEASE
|
|
|
|
libName := $(libName)-debug
|
|
|
|
endif
|
|
|
|
|
|
|
|
target := lib$(libName)
|
2013-01-08 19:32:41 +00:00
|
|
|
|
|
|
|
targetDir := lib/$(buildName)
|
|
|
|
|
2014-04-11 09:32:28 +00:00
|
|
|
prefix ?= $(IMAGINE_SDK_PLATFORM_PATH)
|
|
|
|
|
2014-02-19 03:34:48 +00:00
|
|
|
imaginePkgconfigTemplate := $(IMAGINE_PATH)/pkgconfig/imagine.pc
|
2014-04-11 09:32:28 +00:00
|
|
|
pkgName := $(libName)
|
2014-02-19 03:34:48 +00:00
|
|
|
pkgDescription := Game/Multimedia Engine
|
2024-05-01 05:02:24 +00:00
|
|
|
pkgVersion := 1.5.82
|
2014-04-11 09:32:28 +00:00
|
|
|
LDLIBS := -l$(libName) $(LDLIBS)
|
|
|
|
ifdef libNameExt
|
|
|
|
pkgCFlags := -DIMAGINE_CONFIG_H=$(configFilename)
|
|
|
|
CPPFLAGS += -DIMAGINE_CONFIG_H=$(configFilename)
|
|
|
|
endif
|
2013-01-08 19:32:41 +00:00
|
|
|
|
2024-02-13 22:54:39 +00:00
|
|
|
CFLAGS_WARN += -Werror
|
2024-07-21 18:10:39 +00:00
|
|
|
CFLAGS_LANG = -std=gnu23
|
2021-05-09 10:42:36 +00:00
|
|
|
|
2013-01-08 19:32:41 +00:00
|
|
|
include $(IMAGINE_PATH)/make/imagineStaticLibTarget.mk
|
|
|
|
|
2021-10-06 11:12:40 +00:00
|
|
|
install : main
|
2014-04-11 09:32:28 +00:00
|
|
|
@echo "Installing lib & headers to $(prefix)"
|
2014-10-09 06:56:17 +00:00
|
|
|
$(PRINT_CMD)mkdir -p $(prefix)/lib/pkgconfig $(prefix)/include/
|
|
|
|
$(PRINT_CMD)cp lib/$(buildName)/lib$(libName).a $(prefix)/lib/
|
|
|
|
$(PRINT_CMD)cp lib/$(buildName)/$(libName).pc $(prefix)/lib/pkgconfig/
|
2024-02-13 23:41:50 +00:00
|
|
|
$(PRINT_CMD)cp -r $(projectPath)/include/imagine $(prefix)/include/
|
|
|
|
ifdef makeConfigH
|
|
|
|
$(PRINT_CMD)cp build/$(buildName)/gen/$(configFilename) $(prefix)/include/
|
|
|
|
endif
|
2014-04-11 09:32:28 +00:00
|
|
|
|
2021-10-06 11:12:40 +00:00
|
|
|
install-links : main
|
2014-04-11 09:32:28 +00:00
|
|
|
@echo "Installing symlink lib & headers to $(prefix)"
|
2014-10-09 06:56:17 +00:00
|
|
|
$(PRINT_CMD)mkdir -p $(prefix)/lib/pkgconfig $(prefix)/include/
|
|
|
|
$(PRINT_CMD)$(LN) -srf lib/$(buildName)/lib$(libName).a $(prefix)/lib/
|
|
|
|
$(PRINT_CMD)$(LN) -srf lib/$(buildName)/$(libName).pc $(prefix)/lib/pkgconfig/
|
2024-02-13 23:41:50 +00:00
|
|
|
$(PRINT_CMD)$(LN) -srf $(projectPath)/include/imagine $(prefix)/include/
|
|
|
|
ifdef makeConfigH
|
|
|
|
$(PRINT_CMD)$(LN) -srf build/$(buildName)/gen/$(configFilename) $(prefix)/include/
|
|
|
|
endif
|
2014-04-11 09:32:28 +00:00
|
|
|
|
2013-01-08 19:32:41 +00:00
|
|
|
endif
|