Hi all
Currently I am trying to compile Vanilla-Conquer for AmigaOS4 (Open Source Version of C&C) on Cygwin64-Cross-Compiler on new forthcoming SDK for OS4.
Recently Vanilla-Conquer was ported to MorphOS. BeWorld was kind enough to share his makefile.mos
This is the makefile for mos.
TARGET = vanillatd
TARGET2 = vanillara
AMIGADATE = $(shell date +"%-d.%-m.%Y")
VERSION = 1.0R1
CXX = ppc-morphos-g++-11
CXXFLAGS = -O2 -noixemul -std=gnu++11 -Wall -fcheck-new -fsigned-char -DNDEBUG -D__BIG_ENDIAN__ -DMEGAMAPS -DENGLISH -DFIXIT_FAST_LOAD -DSDL2_BUILD -DOPENAL_BUILD -DTRUE_FALSE_DEFINED -D__AMIGA__ -DNOMINMAX -fpermissive -Wno-narrowing -D__AMIGAVER__=\"$(VERSION)\" -D__AMIGADATE__=\"$(AMIGADATE)\"
CXXFLAGS += -I/usr/local/include/SDL2 -I/usr/local/include/AL -I/usr/local/include -I./common -I./
CXXLIBS = -noixemul -L/usr/local/lib -lopenal -lSDL2 -lm -lc -lpthread
STRIP = ppc-morphos-strip
OBJS_COMMON = common/gitinfo.o common/_diptabl.o common/alloc.o common/auduncmp.o common/b64pipe.o common/b64straw.o common/base64.o common/bfiofile.o common/blowfish.o common/blowpipe.o common/blwstraw.o common/buff.o common/buffer.o common/buffglbl.o common/ccfile.o common/cdfile.o common/cliprect.o common/combuf.o common/control.o common/crc.o common/crew.o common/cstraw.o common/connect.o common/debugstring.o common/delay.o common/dipthong.o common/drawbuff.o common/drawline.o common/drawmisc.o common/face.o common/fading.o common/field.o common/file.o common/filepcx.o common/fixed.o common/font.o common/gadget.o common/getshape.o common/graphicsviewport.o common/hsv.o common/iff.o common/ini.o common/int.o common/internet.o common/irandom.o common/keybuff.o common/keyframe.o common/lcw.o common/lcwpipe.o common/lcwstraw.o common/linear.o common/link.o common/load.o common/memrev.o common/misc.o common/mixfile.o common/mp.o common/newdel.o common/packet.o common/palette.o common/palettec.o common/paths.o common/pipe.o common/pk.o common/pkpipe.o common/pkstraw.o common/ramfile.o common/random.o common/rawfile.o common/readline.o common/rect.o common/rgb.o common/rndstraw.o common/settings.o common/sha.o common/shape.o common/shapipe.o common/shastraw.o common/soscodec.o common/stamp.o common/straw.o common/timer.o common/timerdwn.o common/tobuff.o common/toggle.o common/vector.o common/winasm.o common/windows.o common/winhide.o common/winstub.o common/wsa.o common/xordelta.o common/xpipe.o common/xstraw.o common/file_posix.o common/paths_posix.o common/framelimit.o common/gbuffer.o common/interpal.o common/ipxaddr.o common/tcpip.o common/tcpip_null.o common/unvqbuff.o common/vqaconfig.o common/vqadrawer.o common/vqaloader.o common/vqapalette.o common/vqatask.o common/vqaver.o common/wsproto.o common/wspudp.o common/wwkeyboard.o common/wwmouse.o common/soundio_openal.o common/vqaaudio_openal.o common/video_sdl2.o
OBJS_TIBDAWN = tiberiandawn/aadata.o \
tiberiandawn/abstract.o \
tiberiandawn/adata.o \
tiberiandawn/aircraft.o \
tiberiandawn/anim.o \
tiberiandawn/audio.o \
tiberiandawn/base.o \
tiberiandawn/bbdata.o \
tiberiandawn/bdata.o \
tiberiandawn/building.o \
tiberiandawn/bullet.o \
tiberiandawn/cargo.o \
tiberiandawn/ccini.o \
tiberiandawn/cdata.o \
tiberiandawn/cell.o \
tiberiandawn/checkbox.o \
tiberiandawn/cheklist.o \
tiberiandawn/colrlist.o \
tiberiandawn/combat.o \
tiberiandawn/confdlg.o \
tiberiandawn/conquer.o \
tiberiandawn/const.o \
tiberiandawn/coord.o \
tiberiandawn/credits.o \
tiberiandawn/debug.o \
tiberiandawn/dial8.o \
tiberiandawn/dialog.o \
tiberiandawn/display.o \
tiberiandawn/door.o \
tiberiandawn/drive.o \
tiberiandawn/drop.o \
tiberiandawn/edit.o \
tiberiandawn/ending.o \
tiberiandawn/event.o \
tiberiandawn/expand.o \
tiberiandawn/facing.o \
tiberiandawn/factory.o \
tiberiandawn/findpath.o \
tiberiandawn/flasher.o \
tiberiandawn/fly.o \
tiberiandawn/foot.o \
tiberiandawn/fuse.o \
tiberiandawn/gamedlg.o \
tiberiandawn/gauge.o \
tiberiandawn/globals.o \
tiberiandawn/goptions.o \
tiberiandawn/gscreen.o \
tiberiandawn/hdata.o \
tiberiandawn/heap.o \
tiberiandawn/help.o \
tiberiandawn/house.o \
tiberiandawn/iconset.o \
tiberiandawn/idata.o \
tiberiandawn/infantry.o \
tiberiandawn/init.o \
tiberiandawn/intro.o \
tiberiandawn/iomap.o \
tiberiandawn/ioobj.o \
tiberiandawn/ipx.o \
tiberiandawn/ipx95.o \
tiberiandawn/ipxconn.o \
tiberiandawn/ipxgconn.o \
tiberiandawn/ipxmgr.o \
tiberiandawn/jshell.o \
tiberiandawn/layer.o \
tiberiandawn/lib.o \
tiberiandawn/list.o \
tiberiandawn/loaddlg.o \
tiberiandawn/logic.o \
tiberiandawn/map.o \
tiberiandawn/mapeddlg.o \
tiberiandawn/mapedit.o \
tiberiandawn/mapedplc.o \
tiberiandawn/mapedsel.o \
tiberiandawn/mapedtm.o \
tiberiandawn/mapsel.o \
tiberiandawn/menus.o \
tiberiandawn/miscasm.o \
tiberiandawn/mission.o \
tiberiandawn/monoc.o \
tiberiandawn/mouse.o \
tiberiandawn/mplayer.o \
tiberiandawn/msgbox.o \
tiberiandawn/msglist.o \
tiberiandawn/netdlg.o \
tiberiandawn/noseqcon.o \
tiberiandawn/nulldlg.o \
tiberiandawn/object.o \
tiberiandawn/odata.o \
tiberiandawn/options.o \
tiberiandawn/overlay.o \
tiberiandawn/power.o \
tiberiandawn/profile.o \
tiberiandawn/queue.o \
tiberiandawn/radar.o \
tiberiandawn/radio.o \
tiberiandawn/reinf.o \
tiberiandawn/rules.o \
tiberiandawn/saveload.o \
tiberiandawn/scenario.o \
tiberiandawn/scenarioini.o \
tiberiandawn/score.o \
tiberiandawn/scroll.o \
tiberiandawn/sdata.o \
tiberiandawn/shapebtn.o \
tiberiandawn/sidebar.o \
tiberiandawn/slider.o \
tiberiandawn/smudge.o \
tiberiandawn/sounddlg.o \
tiberiandawn/special.o \
tiberiandawn/startup.o \
tiberiandawn/stats.o \
tiberiandawn/super.o \
tiberiandawn/tab.o \
tiberiandawn/tarcom.o \
tiberiandawn/target.o \
tiberiandawn/tdata.o \
tiberiandawn/team.o \
tiberiandawn/teamtype.o \
tiberiandawn/techno.o \
tiberiandawn/template.o \
tiberiandawn/terrain.o \
tiberiandawn/textbtn.o \
tiberiandawn/theme.o \
tiberiandawn/trigger.o \
tiberiandawn/turret.o \
tiberiandawn/txtlabel.o \
tiberiandawn/udata.o \
tiberiandawn/unit.o \
tiberiandawn/visudlg.o \
tiberiandawn/winstub.o
OBJS_REDALERT = \
redalert/aadata.o \
redalert/abstract.o \
redalert/adata.o \
redalert/aircraft.o \
redalert/anim.o \
redalert/audio.o \
redalert/bar.o \
redalert/base.o \
redalert/bbdata.o \
redalert/bdata.o \
redalert/bench.o \
redalert/bigcheck.o \
redalert/building.o \
redalert/bullet.o \
redalert/cargo.o \
redalert/carry.o \
redalert/ccini.o \
redalert/ccptr.o \
redalert/cdata.o \
redalert/cell.o \
redalert/checkbox.o \
redalert/cheklist.o \
redalert/colrlist.o \
redalert/combat.o \
redalert/confdlg.o \
redalert/conquer.o \
redalert/const.o \
redalert/coord.o \
redalert/crate.o \
redalert/credits.o \
redalert/debug.o \
redalert/dial8.o \
redalert/dialog.o \
redalert/dibfile.o \
redalert/dibutil.o \
redalert/display.o \
redalert/door.o \
redalert/drive.o \
redalert/drop.o \
redalert/edit.o \
redalert/egos.o \
redalert/ending.o \
redalert/event.o \
redalert/expand.o \
redalert/face.o \
redalert/facing.o \
redalert/factory.o \
redalert/findpath.o \
redalert/flasher.o \
redalert/fly.o \
redalert/foot.o \
redalert/fuse.o \
redalert/gamedlg.o \
redalert/gauge.o \
redalert/globals.o \
redalert/goptions.o \
redalert/gscreen.o \
redalert/hdata.o \
redalert/heap.o \
redalert/help.o \
redalert/house.o \
redalert/iconlist.o \
redalert/iconset.o \
redalert/idata.o \
redalert/infantry.o \
redalert/init.o \
redalert/intro.o \
redalert/iomap.o \
redalert/ioobj.o \
redalert/ipx.o \
redalert/ipx95.o \
redalert/ipxconn.o \
redalert/ipxgconn.o \
redalert/ipxmgr.o \
redalert/jshell.o \
redalert/layer.o \
redalert/list.o \
redalert/loaddlg.o \
redalert/logic.o \
redalert/map.o \
redalert/mapeddlg.o \
redalert/mapedit.o \
redalert/mapedplc.o \
redalert/mapedsel.o \
redalert/mapedtm.o \
redalert/mapsel.o \
redalert/menus.o \
redalert/miscasm.o \
redalert/mission.o \
redalert/monoc.o \
redalert/mouse.o \
redalert/mplayer.o \
redalert/msgbox.o \
redalert/msglist.o \
redalert/netdlg.o \
redalert/nulldlg.o \
redalert/object.o \
redalert/odata.o \
redalert/options.o \
redalert/overlay.o \
redalert/power.o \
redalert/profile.o \
redalert/queue.o \
redalert/radar.o \
redalert/radio.o \
redalert/rawolapi.o \
redalert/reinf.o \
redalert/rules.o \
redalert/saveload.o \
redalert/scenario.o \
redalert/score.o \
redalert/scroll.o \
redalert/sdata.o \
redalert/seditdlg.o \
redalert/sendfile.o \
redalert/session.o \
redalert/shapebtn.o \
redalert/sidebar.o \
redalert/slider.o \
redalert/smudge.o \
redalert/sounddlg.o \
redalert/special.o \
redalert/startup.o \
redalert/statbtn.o \
redalert/stats.o \
redalert/super.o \
redalert/tab.o \
redalert/taction.o \
redalert/target.o \
redalert/tdata.o \
redalert/team.o \
redalert/teamtype.o \
redalert/techno.o \
redalert/template.o \
redalert/terrain.o \
redalert/tevent.o \
redalert/textbtn.o \
redalert/theme.o \
redalert/tooltip.o \
redalert/tracker.o \
redalert/trigger.o \
redalert/trigtype.o \
redalert/txtlabel.o \
redalert/udata.o \
redalert/unit.o \
redalert/vdata.o \
redalert/version.o \
redalert/vessel.o \
redalert/visudlg.o \
redalert/vortex.o \
redalert/warhead.o \
redalert/weapon.o \
redalert/winstub.o \
redalert/wol_cgam.o \
redalert/wol_chat.o \
redalert/wol_dnld.o \
redalert/wol_gsup.o \
redalert/wol_logn.o \
redalert/wol_main.o \
redalert/wol_opt.o \
redalert/wolapiob.o \
redalert/woledit.o \
redalert/wolstrng.o
OBJS1 = $(OBJS_COMMON) $(OBJS_TIBDAWN)
OBJS2 = $(OBJS_COMMON) $(OBJS_REDALERT)
all: $(TARGET)
$(TARGET): $(OBJS1)
$(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS)
$(STRIP) --strip-all $(TARGET) -o $(TARGET).strip
$(TARGET2): $(OBJS2)
$(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS)
$(STRIP) --strip-all $(TARGET2) -o $(TARGET2).strip
clean:
rm -f $(OBJS_COMMON) $(OBJS_TIBDAWN)
rm -f $(TARGET) $(TARGET).s $(TARGET).strip
rm -f $(TARGET2) $(TARGET2).s $(TARGET2).strip
dump:
ppc-morphos-objdump --disassemble-all --reloc $(TARGET) >$(TARGET).s
And I modified makefile for AmigaOS4
TARGET = vanillatd
TARGET2 = vanillara
AMIGADATE = 04-07-22
VERSION = 1.0R1
CXX = ppc-amigaos-g++
CXXFLAGS = -O2 -std=gnu++11 -Wall -fcheck-new -fsigned-char -DNDEBUG -D__BIG_ENDIAN__ -DMEGAMAPS -DENGLISH -DFIXIT_FAST_LOAD -DSDL2_BUILD -DOPENAL_BUILD -DTRUE_FALSE_DEFINED -D__AMIGA__ -DNOMINMAX -fpermissive -Wno-narrowing -D__AMIGAVER__=\"$(VERSION)\" -D__AMIGADATE__=\"$(AMIGADATE)\"
CXXFLAGS += -I/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/include/SDL2 -I/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/include/AL -I/usr/local/amiga/ppc-amigaos/SDK/Local/include -I./common -I./
CXXLIBS = -L/usr/local/amiga/ppc-amigaos/SDK/Local/lib -lopenal -lSDL2 -lm -lc -lpthread
STRIP = ppc-amigaos-strip
OBJS_COMMON = common/_diptabl.o common/alloc.o common/auduncmp.o common/b64pipe.o common/b64straw.o common/base64.o common/bfiofile.o common/blowfish.o common/blowpipe.o common/blwstraw.o common/buff.o common/buffer.o common/buffglbl.o common/ccfile.o common/cdfile.o common/cliprect.o common/combuf.o common/control.o common/crc.o common/crew.o common/cstraw.o common/connect.o common/debugstring.o common/delay.o common/dipthong.o common/drawbuff.o common/drawline.o common/drawmisc.o common/face.o common/fading.o common/field.o common/file.o common/filepcx.o common/fixed.o common/font.o common/gadget.o common/getshape.o common/graphicsviewport.o common/hsv.o common/iff.o common/ini.o common/int.o common/internet.o common/irandom.o common/keybuff.o common/keyframe.o common/lcw.o common/lcwpipe.o common/lcwstraw.o common/linear.o common/link.o common/load.o common/memrev.o common/misc.o common/mixfile.o common/mp.o common/newdel.o common/packet.o common/palette.o common/palettec.o common/paths.o common/pipe.o common/pk.o common/pkpipe.o common/pkstraw.o common/ramfile.o common/random.o common/rawfile.o common/readline.o common/rect.o common/rgb.o common/rndstraw.o common/settings.o common/sha.o common/shape.o common/shapipe.o common/shastraw.o common/soscodec.o common/stamp.o common/straw.o common/timer.o common/timerdwn.o common/tobuff.o common/toggle.o common/vector.o common/winasm.o common/windows.o common/winhide.o common/winstub.o common/wsa.o common/xordelta.o common/xpipe.o common/xstraw.o common/file_posix.o common/paths_posix.o common/framelimit.o common/gbuffer.o common/interpal.o common/ipxaddr.o common/tcpip.o common/tcpip_null.o common/unvqbuff.o common/vqaconfig.o common/vqadrawer.o common/vqaloader.o common/vqapalette.o common/vqatask.o common/vqaver.o common/wsproto.o common/wspudp.o common/wwkeyboard.o common/wwmouse.o common/soundio_openal.o common/vqaaudio_openal.o common/video_sdl2.o
OBJS_TIBDAWN = tiberiandawn/aadata.o \
tiberiandawn/abstract.o \
tiberiandawn/adata.o \
tiberiandawn/aircraft.o \
tiberiandawn/anim.o \
tiberiandawn/audio.o \
tiberiandawn/base.o \
tiberiandawn/bbdata.o \
tiberiandawn/bdata.o \
tiberiandawn/building.o \
tiberiandawn/bullet.o \
tiberiandawn/cargo.o \
tiberiandawn/ccini.o \
tiberiandawn/cdata.o \
tiberiandawn/cell.o \
tiberiandawn/checkbox.o \
tiberiandawn/cheklist.o \
tiberiandawn/colrlist.o \
tiberiandawn/combat.o \
tiberiandawn/confdlg.o \
tiberiandawn/conquer.o \
tiberiandawn/const.o \
tiberiandawn/coord.o \
tiberiandawn/credits.o \
tiberiandawn/debug.o \
tiberiandawn/dial8.o \
tiberiandawn/dialog.o \
tiberiandawn/display.o \
tiberiandawn/door.o \
tiberiandawn/drive.o \
tiberiandawn/drop.o \
tiberiandawn/edit.o \
tiberiandawn/ending.o \
tiberiandawn/event.o \
tiberiandawn/expand.o \
tiberiandawn/facing.o \
tiberiandawn/factory.o \
tiberiandawn/findpath.o \
tiberiandawn/flasher.o \
tiberiandawn/fly.o \
tiberiandawn/foot.o \
tiberiandawn/fuse.o \
tiberiandawn/gamedlg.o \
tiberiandawn/gauge.o \
tiberiandawn/globals.o \
tiberiandawn/goptions.o \
tiberiandawn/gscreen.o \
tiberiandawn/hdata.o \
tiberiandawn/heap.o \
tiberiandawn/help.o \
tiberiandawn/house.o \
tiberiandawn/iconset.o \
tiberiandawn/idata.o \
tiberiandawn/infantry.o \
tiberiandawn/init.o \
tiberiandawn/intro.o \
tiberiandawn/iomap.o \
tiberiandawn/ioobj.o \
tiberiandawn/ipx.o \
tiberiandawn/ipx95.o \
tiberiandawn/ipxconn.o \
tiberiandawn/ipxgconn.o \
tiberiandawn/ipxmgr.o \
tiberiandawn/jshell.o \
tiberiandawn/layer.o \
tiberiandawn/lib.o \
tiberiandawn/list.o \
tiberiandawn/loaddlg.o \
tiberiandawn/logic.o \
tiberiandawn/map.o \
tiberiandawn/mapeddlg.o \
tiberiandawn/mapedit.o \
tiberiandawn/mapedplc.o \
tiberiandawn/mapedsel.o \
tiberiandawn/mapedtm.o \
tiberiandawn/mapsel.o \
tiberiandawn/menus.o \
tiberiandawn/miscasm.o \
tiberiandawn/mission.o \
tiberiandawn/monoc.o \
tiberiandawn/mouse.o \
tiberiandawn/mplayer.o \
tiberiandawn/msgbox.o \
tiberiandawn/msglist.o \
tiberiandawn/netdlg.o \
tiberiandawn/noseqcon.o \
tiberiandawn/nulldlg.o \
tiberiandawn/object.o \
tiberiandawn/odata.o \
tiberiandawn/options.o \
tiberiandawn/overlay.o \
tiberiandawn/power.o \
tiberiandawn/profile.o \
tiberiandawn/queue.o \
tiberiandawn/radar.o \
tiberiandawn/radio.o \
tiberiandawn/reinf.o \
tiberiandawn/rules.o \
tiberiandawn/saveload.o \
tiberiandawn/scenario.o \
tiberiandawn/scenarioini.o \
tiberiandawn/score.o \
tiberiandawn/scroll.o \
tiberiandawn/sdata.o \
tiberiandawn/shapebtn.o \
tiberiandawn/sidebar.o \
tiberiandawn/slider.o \
tiberiandawn/smudge.o \
tiberiandawn/sounddlg.o \
tiberiandawn/special.o \
tiberiandawn/startup.o \
tiberiandawn/stats.o \
tiberiandawn/super.o \
tiberiandawn/tab.o \
tiberiandawn/tarcom.o \
tiberiandawn/target.o \
tiberiandawn/tdata.o \
tiberiandawn/team.o \
tiberiandawn/teamtype.o \
tiberiandawn/techno.o \
tiberiandawn/template.o \
tiberiandawn/terrain.o \
tiberiandawn/textbtn.o \
tiberiandawn/theme.o \
tiberiandawn/trigger.o \
tiberiandawn/turret.o \
tiberiandawn/txtlabel.o \
tiberiandawn/udata.o \
tiberiandawn/unit.o \
tiberiandawn/visudlg.o \
tiberiandawn/winstub.o
OBJS_REDALERT = \
redalert/aadata.o \
redalert/abstract.o \
redalert/adata.o \
redalert/aircraft.o \
redalert/anim.o \
redalert/audio.o \
redalert/bar.o \
redalert/base.o \
redalert/bbdata.o \
redalert/bdata.o \
redalert/bench.o \
redalert/bigcheck.o \
redalert/building.o \
redalert/bullet.o \
redalert/cargo.o \
redalert/carry.o \
redalert/ccini.o \
redalert/ccptr.o \
redalert/cdata.o \
redalert/cell.o \
redalert/checkbox.o \
redalert/cheklist.o \
redalert/colrlist.o \
redalert/combat.o \
redalert/confdlg.o \
redalert/conquer.o \
redalert/const.o \
redalert/coord.o \
redalert/crate.o \
redalert/credits.o \
redalert/debug.o \
redalert/dial8.o \
redalert/dialog.o \
redalert/dibfile.o \
redalert/dibutil.o \
redalert/display.o \
redalert/door.o \
redalert/drive.o \
redalert/drop.o \
redalert/edit.o \
redalert/egos.o \
redalert/ending.o \
redalert/event.o \
redalert/expand.o \
redalert/face.o \
redalert/facing.o \
redalert/factory.o \
redalert/findpath.o \
redalert/flasher.o \
redalert/fly.o \
redalert/foot.o \
redalert/fuse.o \
redalert/gamedlg.o \
redalert/gauge.o \
redalert/globals.o \
redalert/goptions.o \
redalert/gscreen.o \
redalert/hdata.o \
redalert/heap.o \
redalert/help.o \
redalert/house.o \
redalert/iconlist.o \
redalert/iconset.o \
redalert/idata.o \
redalert/infantry.o \
redalert/init.o \
redalert/intro.o \
redalert/iomap.o \
redalert/ioobj.o \
redalert/ipx.o \
redalert/ipx95.o \
redalert/ipxconn.o \
redalert/ipxgconn.o \
redalert/ipxmgr.o \
redalert/jshell.o \
redalert/layer.o \
redalert/list.o \
redalert/loaddlg.o \
redalert/logic.o \
redalert/map.o \
redalert/mapeddlg.o \
redalert/mapedit.o \
redalert/mapedplc.o \
redalert/mapedsel.o \
redalert/mapedtm.o \
redalert/mapsel.o \
redalert/menus.o \
redalert/miscasm.o \
redalert/mission.o \
redalert/monoc.o \
redalert/mouse.o \
redalert/mplayer.o \
redalert/msgbox.o \
redalert/msglist.o \
redalert/netdlg.o \
redalert/nulldlg.o \
redalert/object.o \
redalert/odata.o \
redalert/options.o \
redalert/overlay.o \
redalert/power.o \
redalert/profile.o \
redalert/queue.o \
redalert/radar.o \
redalert/radio.o \
redalert/rawolapi.o \
redalert/reinf.o \
redalert/rules.o \
redalert/saveload.o \
redalert/scenario.o \
redalert/score.o \
redalert/scroll.o \
redalert/sdata.o \
redalert/seditdlg.o \
redalert/sendfile.o \
redalert/session.o \
redalert/shapebtn.o \
redalert/sidebar.o \
redalert/slider.o \
redalert/smudge.o \
redalert/sounddlg.o \
redalert/special.o \
redalert/startup.o \
redalert/statbtn.o \
redalert/stats.o \
redalert/super.o \
redalert/tab.o \
redalert/taction.o \
redalert/target.o \
redalert/tdata.o \
redalert/team.o \
redalert/teamtype.o \
redalert/techno.o \
redalert/template.o \
redalert/terrain.o \
redalert/tevent.o \
redalert/textbtn.o \
redalert/theme.o \
redalert/tooltip.o \
redalert/tracker.o \
redalert/trigger.o \
redalert/trigtype.o \
redalert/txtlabel.o \
redalert/udata.o \
redalert/unit.o \
redalert/vdata.o \
redalert/version.o \
redalert/vessel.o \
redalert/visudlg.o \
redalert/vortex.o \
redalert/warhead.o \
redalert/weapon.o \
redalert/winstub.o \
redalert/wol_cgam.o \
redalert/wol_chat.o \
redalert/wol_dnld.o \
redalert/wol_gsup.o \
redalert/wol_logn.o \
redalert/wol_main.o \
redalert/wol_opt.o \
redalert/wolapiob.o \
redalert/woledit.o \
redalert/wolstrng.o
OBJS1 = $(OBJS_COMMON) $(OBJS_TIBDAWN)
OBJS2 = $(OBJS_COMMON) $(OBJS_REDALERT)
all: $(TARGET)
$(TARGET): $(OBJS1)
$(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS)
$(STRIP) --strip-all $(TARGET) -o $(TARGET).strip
$(TARGET2): $(OBJS2)
$(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS)
$(STRIP) --strip-all $(TARGET2) -o $(TARGET2).strip
clean:
rm -f $(OBJS_COMMON) $(OBJS_TIBDAWN)
rm -f $(TARGET) $(TARGET).s $(TARGET).strip
rm -f $(TARGET2) $(TARGET2).s $(TARGET2).strip
dump:
ppc-amigaos-objdump --disassemble-all --reloc $(TARGET) >$(TARGET).s
I am able to compile and link some sources, but compiler halts with this error
common/paths_posix.cpp: In function ‘const string& {anonymous}::User_Home()’:
common/paths_posix.cpp:66:40: error: ‘_SC_GETPW_R_SIZE_MAX’ was not declared in this scope
66 | long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
| ^~~~~~~~~~~~~~~~~~~~
common/paths_posix.cpp:66:32: error: ‘sysconf’ was not declared in this scope; did you mean ‘sscanf’?
66 | long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
| ^~~~~~~
| sscanf
common/paths_posix.cpp:65:31: warning: unused variable ‘pwd’ [-Wunused-variable]
65 | struct passwd pwd;
| ^~~
common/paths_posix.cpp: In function ‘std::string {anonymous}::Get_Posix_Default(const char*, const char*)’:
common/paths_posix.cpp:104:22: error: ‘snprintf’ is not a member of ‘std’; did you mean ‘sprintf’?
104 | std::snprintf(buffer,
| ^~~~~~~~
| sprintf
common/paths_posix.cpp: In member function ‘const char* PathsClass::Program_Path()’:
common/paths_posix.cpp:134:14: warning: unused variable ‘buffer’ [-Wunused-variable]
134 | char buffer[PATH_MAX];
| ^~~~~~
common/paths_posix.cpp: In function ‘char* realpath(const char*, char*)’:
common/paths_posix.cpp:284:24: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
284 | return "";
| ^~
common/paths_posix.cpp: At global scope:
common/paths_posix.cpp:97:17: warning: ‘std::string {anonymous}::Get_Posix_Default(const char*, const char*)’ defined but not used [-Wunused-function]
97 | std::string Get_Posix_Default(const char* env_var, const char* relative_path)
| ^~~~~~~~~~~~~~~~~
make: *** [<builtin>: common/paths_posix.o] Error 1
Any help or suggestions are welcome.
Thanks
Edited by SinanSam460 on 2022/7/4 20:53:53