Find the answer to your Linux question:
Results 1 to 3 of 3
Hi gang, I just download the source for dsmp darn small media player. But the guy develops it under windows. <spit> but says it will compile on any gcc compiler. ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    4

    win gcc makefile

    Hi gang,

    I just download the source for dsmp darn small media player. But the guy develops it under windows. <spit> but says it will compile on any gcc compiler.

    ERr how do I change the make file pls?

    <code>
    # Project: DSMP
    # Compiler: Default GCC compiler
    # Compiler Type: MingW 3
    # Makefile created by wxDev-C++ 7.0 on 26-03-09 01:43

    CPP = g++.exe
    CC = gcc.exe
    WINDRES = "windres.exe"
    OBJ = Objects/MingW/SMPApp.o Objects/MingW/SMPDlg.o Objects/MingW/SMP_private.res
    LINKOBJ = Objects/MingW/SMPApp.o Objects/MingW/SMPDlg.o Objects/MingW/SMP_private.res
    LIBS = -L"C:/Program Files/Dev-Cpp/Lib" -lwxmsw28_treelistctrl -mwindows -lwxmsw28 -lwxmsw28_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 -g3
    INCS = -I"C:/Program Files/Dev-Cpp/Include"
    CXXINCS = -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5" -I"C:/Program Files/Dev-Cpp/include" -I"C:/Program Files/Dev-Cpp/" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/plotctrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/sheet" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/treemultictrl" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx/things" -I"C:/Program Files/Dev-Cpp/include/3rdparty/wx" -I"C:/Program Files/Dev-Cpp/include/3rdparty" -I"C:/Program Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program Files/Dev-Cpp/include/common/wx/fl" -I"C:/Program Files/Dev-Cpp/include/common/wx/gizmos" -I"C:/Program Files/Dev-Cpp/include/common/wx/html" -I"C:/Program Files/Dev-Cpp/include/common/wx/mmedia" -I"C:/Program Files/Dev-Cpp/include/common/wx/net" -I"C:/Program Files/Dev-Cpp/include/common/wx/ogl" -I"C:/Program Files/Dev-Cpp/include/common/wx/plot" -I"C:/Program Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program Files/Dev-Cpp/include/common/wx/stc" -I"C:/Program Files/Dev-Cpp/include/common/wx/svg" -I"C:/Program Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program Files/Dev-Cpp/include/common/wx" -I"C:/Program Files/Dev-Cpp/include/common"
    RCINCS = --include-dir "C:/PROGRA~1/Dev-Cpp/include/common"
    BIN = Output/MingW/DSMP.exe
    DEFINES = -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__
    CXXFLAGS = $(CXXINCS) $(DEFINES) -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -g3
    CFLAGS = $(INCS) $(DEFINES) -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -g3
    GPROF = gprof.exe
    RM = rm -f
    WXLIBNAME = wxmsw28
    LINK = g++.exe

    .PHONY: all all-before all-after clean clean-custom
    all: all-before $(BIN) all-after

    clean: clean-custom
    $(RM) $(OBJ) $(BIN)

    $(BIN): $(OBJ)
    $(LINK) $(LINKOBJ) -o "Output\MingW\DSMP.exe" $(LIBS)

    Objects/MingW/SMPApp.o: $(GLOBALDEPS) SMPApp.cpp SMPApp.h SMPDlg.h filelist.h
    $(CPP) -c SMPApp.cpp -o Objects/MingW/SMPApp.o $(CXXFLAGS)

    Objects/MingW/SMPDlg.o: $(GLOBALDEPS) SMPDlg.cpp SMPDlg.h filelist.h Images/Self_SMPDlg_XPM.xpm Images/SMPDlg_NextButton_XPM.xpm Images/SMPDlg_StopButton_XPM.xpm Images/SMPDlg_PlayButton_XPM.xpm Images/SMPDlg_PreviousButton_XPM.xpm Images/click_play.xpm Images/click_skip_backward.xpm Images/click_skip_forward.xpm Images/click_stop_playing.xpm Images/hover_play.xpm Images/hover_skip_backward.xpm Images/hover_skip_forward.xpm Images/hover_stop_playing.xpm Images/pause.xpm Images/click_pause.xpm Images/hover_pause.xpm
    $(CPP) -c SMPDlg.cpp -o Objects/MingW/SMPDlg.o $(CXXFLAGS)

    Objects/MingW/SMP_private.res: Objects/MingW/SMP_private.rc SMPApp.rc
    $(WINDRES) --input-format=rc -o Objects/MingW/SMP_private.res $(RCINCS) Objects/MingW/SMP_PR~1.RC -O coff
    </code>

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You can write this data to a file named "Makefile" and then build it with nmake, or if that gives problems download and install gmake.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    4
    Quote Originally Posted by Rubberman View Post
    You can write this data to a file named "Makefile" and then build it with nmake, or if that gives problems download and install gmake.
    I have just had a nose around, and discovered that nmake is a windoze make file thingy.

    The aurther of the softwae this mak file makes said it was platform independant. He's no good with mke files. I trying to get it to work under ubuntu.

    Thank anyawy, my searches pointed me tp prj2make progy, witch may help me with something else.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...