Modified linux makefiles for compiling with MinGW. Not successful yet (except under codeblocks).

This commit is contained in:
skarg
2008-03-08 15:08:27 +00:00
parent b2437a82ce
commit a3e2d61f56
13 changed files with 85 additions and 32 deletions
+3 -2
View File
@@ -14,7 +14,8 @@ BACNET_DEFINES = -DBACFILE=1 -DPRINT_ENABLED=1 -DBACAPP_ALL
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE)
# Directories
BACNET_PORT = ../../ports/linux
BACNET_PORT = linux
BACNET_PORT_DIR = ../../ports/${BACNET_PORT}
BACNET_INCLUDE = ../../include
# BACnet Library
@@ -22,7 +23,7 @@ BACNET_LIB_DIR = ../../lib
BACNET_LIB_NAME = bacnet
BACNET_LIB_TARGET = $(BACNET_LIB_DIR)/lib$(BACNET_LIB_NAME).a
# Compiler Setup
INCLUDES = -I$(BACNET_INCLUDE) -I$(BACNET_PORT)
INCLUDES = -I$(BACNET_INCLUDE) -I$(BACNET_PORT_DIR)
LIBRARIES=-lc,-lgcc,-lm,-L=$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME)
CFLAGS = -Wall -g $(INCLUDES) $(DEFINES)
LFLAGS = -Wl,-Map=$(TARGET).map,$(LIBRARIES)