Hello,
Today I installed 10.3 gcc and g ++ on FreeBSD. Unfortunately, the commands to run gcc and g ++ do not work. But then I got an idea ...
Did I wonder if it could not be compiled in Windows?
I found the programs needed for compilation (gcc and g ++) in Windows.
Bitte melden Sie sich an, um diesen Link zu sehen.
(And youtube tutorial for install here:)
Bitte melden Sie sich an, um dieses Medienelement zu sehen.
But the second problem is how this code:
Shell-Script: makefile
- CC=gcc
- CXX=g++
- PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
- BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
- SVR_VERSION = $(shell cat __REVISION__)
- default: libthecore libpoly libgame liblua libsql game db
- @echo "--------------------------------------"
- @echo "Build Done"
- @echo "--------------------------------------"
- liblua: .
- $(MAKE) -C $@ clean
- $(MAKE) -C $@
- libsql: .
- @touch $@/Depend
- $(MAKE) -C $@ dep
- $(MAKE) -C $@ clean
- $(MAKE) -C $@
- libgame: .
- @touch $@/src/Depend
- $(MAKE) -C $@/src dep
- $(MAKE) -C $@/src clean
- $(MAKE) -C $@/src
- libpoly: .
- @touch $@/Depend
- $(MAKE) -C $@ dep
- $(MAKE) -C $@ clean
- $(MAKE) -C $@
- libthecore: .
- @touch $@/src/Depend
- $(MAKE) -C $@/src dep
- $(MAKE) -C $@/src clean
- $(MAKE) -C $@/src
- game: .
- @touch $@/src/Depend
- $(MAKE) -C $@/src dep
- $(MAKE) -C $@/src clean
- $(MAKE) -C $@/src
- db: .
- @touch $@/src/Depend
- $(MAKE) -C $@/src dep
- $(MAKE) -C $@/src clean
- $(MAKE) -C $@/src
- ver:
- @$(CC) -v
- ver2:
- @$(CC) -v
- $(MAKE) -C game/src ver
- strip:
- $(MAKE) -C game/src strip
- $(MAKE) -C db/src strip
- install:
- $(MAKE) -C game/src install
- $(MAKE) -C db/src install
- all:
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mUpdate Revision\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @expr $(SVR_VERSION) + 1 > __REVISION__
- @cat __REVISION__
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mFull Build Start\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- $(MAKE) -C liblua clean
- $(MAKE) -C liblua
- @touch libsql/Depend
- $(MAKE) -C libsql dep
- $(MAKE) -C libsql clean
- $(MAKE) -C libsql
- @touch libgame/src/Depend
- $(MAKE) -C libgame/src dep
- $(MAKE) -C libgame/src clean
- $(MAKE) -C libgame/src
- @touch libpoly/Depend
- $(MAKE) -C libpoly dep
- $(MAKE) -C libpoly clean
- $(MAKE) -C libpoly
- @touch libthecore/src/Depend
- $(MAKE) -C libthecore/src dep
- $(MAKE) -C libthecore/src clean
- $(MAKE) -C libthecore/src
- @touch game/src/Depend
- $(MAKE) -C game/src dep
- $(MAKE) -C game/src clean
- $(MAKE) -C game/src
- @touch db/src/Depend
- $(MAKE) -C db/src dep
- $(MAKE) -C db/src clean
- $(MAKE) -C db/src
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mFull Build End\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- all2:
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mUpdate Revision\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @expr $(SVR_VERSION) + 1 > __REVISION__
- @cat __REVISION__
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mFull Build Start\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @touch game/src/Depend
- $(MAKE) -C game/src dep
- $(MAKE) -C game/src clean
- $(MAKE) -C game/src
- @touch db/src/Depend
- $(MAKE) -C db/src dep
- $(MAKE) -C db/src clean
- $(MAKE) -C db/src
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- @echo -e "\033[0;35mFull Build End\033[0m"
- @echo -e "\033[0;33m--------------------------------------\033[0m"
- clean:
- $(MAKE) -C liblua clean
- $(MAKE) -C libsql clean
- $(MAKE) -C libgame/src clean
- $(MAKE) -C libpoly clean
- $(MAKE) -C libthecore/src clean
- $(MAKE) -C game/src clean
- $(MAKE) -C db/src clean
- clean2:
- $(MAKE) -C game/src clean
- $(MAKE) -C db/src clean
Transfer to Windows.
I am sorry for my English, if you have an idea, surely i think a lot of people would appreciate it.
Could anyone help me with the release of the FreeBSD 10.3 compilation?
Thank you.