bbosen - 2024-03-21

I deleted the following pair of stale old lines from the Makefile:

mkdir -p ~/.LAC
cp DefaultHeightMap.LAC ~/.LAC/DefaultHeightMap.LAC

While working on the Makefile, I also discovered that I can improve compatibility with a lot of LINUX distros by reversing the order of the two parameters that have been passed to the g++ compiler. Instead of passing $(LIBS) first and then $(OBJS), I had better results passing $(OBJS) first followed by $(LIBS). Accordingly, the Makefile (this example is for version 9.62) now looks like THIS:

============ BEGIN Makefile ===========

OBJS=3ds.o aiobject.o audio.o cockpit.o common.o conf.o dirs.o effects.o fileloader.o FlightModel.o gl.o glland.o land.o loader_tga.o main.o mathtab.o menu.o mission.o model.o NetworkApi.o object.o objload.o pilots.o vertexarray.o

CXX=g++ -Ofast -g0 -fPIE

LIBS= -lglut -lGLU -lSDL -lSDL_mixer -L/lib64 -lGL

Lac09p62: $(OBJS)
    g++ -o Lac0962 $(OBJS) $(LIBS)
    cp Lac0962 bin/Release/Lac0962
    chmod +x bin/Release/Lac0962
clean:
    @rm -f *.o
    @rm -f Lac0962

============= END Makefile ============

 

Last edit: bbosen 2024-03-21