Skip to content

Commit

Permalink
adjust build of occ for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
LADSoft committed May 4, 2024
1 parent e9129cc commit 9047206
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/netlib/NetCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
*/

#include <Windows.h>
#include <windows.h>
#include <fstream>
#include <map>
#include <string>
Expand Down
4 changes: 4 additions & 0 deletions src/netlib/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ INCLUDES=..$(PATHEXT2)util ..$(PATHEXT2)exefmt ..$(PATHEXT2)
CPP_DEPENDENCIES=$(wildcard *.cpp)
H_DEPENDENCIES=$(wildcard *.h)
LIB_DEPENDENCIES=util libhostfxr

ifneq "$(COMPILER)" "gcc-linux"
DEFINES:=TARGET_OS_WINDOWS FALLBACK_HOST_OS=\"win10\" FEATURE_APPHOST TARGET_WINDOWS
#fixme this next won't run in an x64 image....
DEFINES:= $(DEFINES) TARGET_X86 CURRENT_ARCH_NAME=\"x86\"
endif

include ../redirect.mak
NO_COMPARE=yes

Expand Down
4 changes: 2 additions & 2 deletions src/treetop.mak
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ $(CDIRS): %.dirs :
-$(MKDIR) $*$(PATHEXT2)obj$(PATHEXT2)$(OBJ_IND_PATH) 2> $(NULLDEV)

$(LIBS): %.library :
$(MAKE) library compile -f $(_TREEROOT) -C$*
$(MAKE) library compile -f $(_TREEROOT) -DCOMPILER=$(COMPILER) -C$*
$(EXES): %.exefile : library
$(MAKE) exefile link -f $(_TREEROOT) -C$*
$(MAKE) exefile link -f $(_TREEROOT) -DCOMPILER=$(COMPILER) -C$*

distribute_self: cleanDISTRIBUTE
$(MAKE) DISTRIBUTE
Expand Down

0 comments on commit 9047206

Please sign in to comment.