3 # - By John Hodge (thePowersGang)
6 # - SDL-backed edition core definitions
10 LIBBASE := $(UMODEBASE)Libraries/
11 LIBOUTDIR := $(UMODEBASE)Output/host/Libs
13 CPPFLAGS += -DAXWIN_SDL_BUILD=1
14 CPPFLAGS += $(patsubst -l%,-I$(LIBBASE)lib%.so_src/include_exp,$(filter -l%,$(LDFLAGS)))
15 CPPFLAGS += -I$(LIBBASE)libaxwin3.so_src/include_exp
16 LIBS := $(patsubst -l%,$(LIBBASE)lib%.so_src,$(filter -l%,$(LDFLAGS)))
17 LIBS := $(wildcard $(LIBS))
18 LIBS := $(LIBS:$(LIBBASE)%_src=$(LIBOUTDIR)%)
19 LDFLAGS := `sdl-config --libs` -L$(LIBOUTDIR) $(LDFLAGS)
21 ifeq ($(OS),Windows_NT)
32 _OBJ := $(OBJ:%=$(BDIR)%)
33 _BIN := ../bin-SDL/$(BIN)$(BINSUFFIX)
40 $(RM) $(_BIN) $(_OBJ) $(BDIR)
42 $(_BIN): $(_OBJ) $(LIBS)
45 @$(CC) $(LDFLAGS) -o $@ $(_OBJ)
50 @$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
53 -ARCH=host HOST_ARCH=x86_64 make -C $(LIBBASE)lib$*.so_src/ all