#----------------------------------------------
CC := gcc
SHARE := -m32 -fPIC -shared
DEFINES := -DPLATFORM_UBUNTU \
-D_REENTRANT \
-D_UNICODE \
-DPRINTLOG
#----------------------------------------------
#----------------------------------------------
PROJ_DIR := ./Source
Libgdc_DIR := $(PROJ_DIR)/Libgdc
zlib_DIR := $(PROJ_DIR)/zlib
mcbxml_DIR := $(PROJ_DIR)/mcbxml
APP_INC := -I ./Source/ \
-I ./Source/ANE70 \
-I ./Source/Libgdc \
-I ./Source/zlib \
-I ./Source/mcbxml
SOURCE := $(wildcard $(Libgdc_DIR)/*.c $(zlib_DIR)/*.c $(mcbxml_DIR)/*.c $(PROJ_DIR)/*.c)
DIR := $(notdir $(SOURCE))
OBJS := $(patsubst %.c,%.o,$(DIR))
#----------------------------------------------
#----------------------------------------------
libNetNavi_Route.so: $(OBJS)
$(CC) $(SHARE) $(DEFINES) $(OBJS) -o libNetNavi_Route.so
%.o: $(Libgdc_DIR)/%.c
$(CC) $(SHARE) $(DEFINES) -c $(APP_INC) $< -o $@
%.o: $(zlib_DIR)/%.c
$(CC) $(SHARE) $(DEFINES) -c $(APP_INC) $< -o $@
%.o: $(mcbxml_DIR)/%.c
$(CC) $(SHARE) $(DEFINES) -c $(APP_INC) $< -o $@
%.o: $(PROJ_DIR)/%.c
$(CC) $(SHARE) $(DEFINES) -c $(APP_INC) $< -o $@
#----------------------------------------------
#----------------------------------------------
rebuild: clean libNetNavi_Route.so
clean:
rm -rf *.o libNetNavi_Route.so
#----------------------------------------------