I'm trying to make this project without using visual studio (just not interested in using that), but I'm having some problems. I fetched the code, installed SDL (devel) to resolve the sdl-config dependency in openxcom Makefile.
The Makefile somehow doesn't expand backticks for me using borland make 5.2 in cygwin. I got the following error:
$ make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
`sdl-config --libs` -lSDL_gfx -lSDL_mixer -o openxcom
'`sdl-config' is not recognized as an internal or external command,
operable program or batch file.
** error 1 ** deleting openxcom
so I edited those lines using the output I got into:
CXXFLAGS = -Wall -O2 -I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main
LDFLAGS = -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_gfx -lSDL_mixer
and got rid of that, but still no go:
$ make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_gfx -lSDL_mixer -o openxcom
Fatal: Unable to execute command: L/usr/local/lib
It seems to me that at the line
$(CXX) $(LDFLAGS) -o $(PROG) $(OBJS)
CXX is not set, so it tries to execute a command L/usr/local/lib
I'm not familiar with Makefiles so I don't know what's wrong.