2014-04-04 09:38:44 +02:00
|
|
|
MENUETDEV=/programs/develop/libraries/menuetlibc
|
2011-02-21 14:30:08 +01:00
|
|
|
include osrules.mak
|
|
|
|
all: genconfig
|
|
|
|
@echo Building library for $(VERSION_OS)
|
|
|
|
gcc mkversion.c -o mkversion$(EXESUFFIX)
|
2014-04-04 09:38:44 +02:00
|
|
|
|
|
|
|
@echo $(MENUETDEV)
|
2011-02-21 14:30:08 +01:00
|
|
|
ifdef ON_MINGW
|
|
|
|
mkversion$(EXESUFFIX) < version > include/libc/version.h
|
|
|
|
else
|
|
|
|
./mkversion$(EXESUFFIX) < version > include/libc/version.h
|
|
|
|
endif
|
|
|
|
make -C linuxtools
|
|
|
|
make -C src depend
|
|
|
|
make -C src
|
|
|
|
make -C stub
|
|
|
|
make -C programs
|
|
|
|
|
|
|
|
genconfig:
|
|
|
|
ifdef ON_MINGW
|
|
|
|
@echo #$(NEED_UNDERSCORES) NEEDS_UNDERSCORES> config.h
|
|
|
|
else
|
|
|
|
@echo "#$(NEED_UNDERSCORES) NEEDS_UNDERSCORES" > config.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean:
|
|
|
|
make -C src clean
|
|
|
|
make -C linuxtools clean
|
|
|
|
make -C stub clean
|
|
|
|
make -C programs clean
|
|
|
|
$(RM) mkversion$(EXESUFFIX)
|