More fixes to Makefile

This commit is contained in:
2023-06-08 16:43:13 -04:00
parent 0d4ebe65e1
commit 7c231641d8

View File

@@ -182,8 +182,9 @@ endif
all: build/$(OS)/$(LUPREX_EXE) build/$(OS)/$(LUPREXSTATIC_EXE) build/$(OS)/$(LUPREXLIB_DLL)
build:
build/DIRECTORY:
mkdir -p build/$(OS)/core build/$(OS)/eris build/$(OS)/drv
touch build/DIRECTORY
build/$(OS)/$(LUPREX_EXE): build/$(OS)/$(LUPREXLIB_DLL) $(OBJ_DRV)
$(LINKEXE) $@ $(OBJ_DRV) $(LIBS)
@@ -197,15 +198,15 @@ build/$(OS)/$(LUPREXLIB_DLL): $(OBJ_ERIS) $(OBJ_CORE)
$(LINKDLL) $@ $^
$(MAKEPDB) $@
build/$(OS)/eris/%.obj: ext/eris-master/src/%.c build
build/$(OS)/eris/%.obj: ext/eris-master/src/%.c build/DIRECTORY
$(MAKEDEPS) $@d $(LUA_FLAGS) $<
$(COMPILE) $@ $(LUA_FLAGS) $<
build/$(OS)/core/%.obj: cpp/core/%.cpp build
build/$(OS)/core/%.obj: cpp/core/%.cpp build/DIRECTORY
$(MAKEDEPS) $@d -I./ext/eris-master/src -I./cpp/wrap -I./cpp/core $<
$(COMPILE) $@ -I./ext/eris-master/src -I./cpp/wrap -I./cpp/core $<
build/$(OS)/drv/%.obj: cpp/drv/%.cpp build
build/$(OS)/drv/%.obj: cpp/drv/%.cpp build/DIRECTORY
$(MAKEDEPS) $@d $(OPENSSL_INCLUDE) -I./src/drv $<
$(COMPILE) $@ $(OPENSSL_INCLUDE) -I./src/drv $<