X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=2a02d8165882463f8f45634d78e6bb4a7b29faee;hb=2e99b0c26d334eb287486b8933b52b5048c6cc0c;hp=8efe88c658ff570af4f28a3feb8888295845d5ce;hpb=2486a7a849210371bb59e733e37b0271a4332d8b;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index 8efe88c6..2a02d816 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,20 +10,9 @@ .EXPORT_ALL_VARIABLES: -ifndef PLATFORM # unknown platform -- try auto detection -ifdef COMSPEC -PLATFORM = msdos -else +ifndef PLATFORM # unknown platform -- default to Unix PLATFORM = unix endif -endif - -ifdef X11_PATH # path to X11 from top level Makefile -XINC_PATH = $(X11_PATH)/include -XLIB_PATH = $(X11_PATH)/lib -X11_INCL = -I$(XINC_PATH) -X11_LIBS = -L$(XLIB_PATH) -lX11 -endif AR = ar RANLIB = ranlib @@ -59,15 +48,6 @@ PLATFORM = unix TARGET = sdl endif -ifeq ($(PLATFORM),os2) # native compiling to OS/2 -RANLIB = echo -PROGNAME = ../$(PROGBASE).exe -EXTRA_CFLAGS = -Zbin-files -D__ST_MT_ERRNO__ -Zmtd -fomit-frame-pointer -EXTRA_LDFLAGS = -lsocket -PLATFORM = unix -TARGET = x11 -endif - ifeq ($(PLATFORM),unix) # native compiling to Unix (generic) PROFILING_FLAGS = -pg endif @@ -79,30 +59,11 @@ EXTRA_LDFLAGS = -lshfolder -lwsock32 TARGET = sdl2 endif -ifeq ($(PLATFORM),cross-msdos) # cross-compiling to MS-DOS -PROGBASE = rocks -PROGNAME = ../$(PROGBASE).exe -TARGET = allegro -endif - -ifeq ($(PLATFORM),msdos) # native compiling to MS-DOS -PROGBASE = rocks -PROGNAME = ../$(PROGBASE).exe -SYS_CFLAGS = -DTARGET_X11 -SYS_LDFLAGS = -s -lalleg -RM = del -endif - # ----------------------------------------------------------------------------- # configuring target # ----------------------------------------------------------------------------- -ifeq ($(TARGET),x11) # compiling for X11 target -SYS_CFLAGS = -DTARGET_X11 $(X11_INCL) -SYS_LDFLAGS = $(X11_LIBS) -endif - ifeq ($(TARGET),sdl) # compiling for SDL target SYS_CFLAGS = -DTARGET_SDL $(shell sdl-config --cflags) SDL_LIBS = -lSDL_image -lSDL_mixer -lSDL_net -lsmpeg @@ -127,11 +88,6 @@ SDL_LIBS = -lSDL2_image -lSDL2_mixer -lSDL2_net -lsmpeg2 -lmikmod SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl2-config --static-libs) endif -ifeq ($(TARGET),allegro) # compiling for Allegro target -SYS_CFLAGS = -DTARGET_ALLEGRO -I$(CROSS_PATH_MSDOS)/include -SYS_LDFLAGS = -lalleg -endif - # ----------------------------------------------------------------------------- # configuring compile-time definitions