From 56356c8065123515d8c1f81cf531248b0ab7ea67 Mon Sep 17 00:00:00 2001 From: "Mihail Semenyako (mike.dld)" Date: Wed, 4 Feb 2009 12:27:53 +0000 Subject: [PATCH] libs-dev: makefiles git-svn-id: svn://kolibrios.org@1023 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/libs-dev/build.bat | 28 +++++++++++++++++ programs/develop/libraries/libs-dev/makefile | 30 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 programs/develop/libraries/libs-dev/build.bat create mode 100644 programs/develop/libraries/libs-dev/makefile diff --git a/programs/develop/libraries/libs-dev/build.bat b/programs/develop/libraries/libs-dev/build.bat new file mode 100755 index 0000000000..e0ce60c095 --- /dev/null +++ b/programs/develop/libraries/libs-dev/build.bat @@ -0,0 +1,28 @@ +@echo off + +set LIBPREFIX=lib +set LIBEXT=obj +set TESTPREFIX=test + +echo building libraries... + +if exist bin rmdir /S /Q bin +mkdir bin + +for %%i in (gfx img ini io) do ( + echo %LIBPREFIX%%%i + cd %LIBPREFIX%%%i + fasm %LIBPREFIX%%%i.asm ..\bin\%LIBPREFIX%%%i.%LIBEXT% >nul + cd .. +) + +echo building tests... + +mkdir bin\.test + +for %%i in (001 002) do ( + echo %%i + cd .test\%%i + fasm %TESTPREFIX%%%i.asm ..\..\bin\.test\%TESTPREFIX%%%i >nul + cd ..\.. +) diff --git a/programs/develop/libraries/libs-dev/makefile b/programs/develop/libraries/libs-dev/makefile new file mode 100644 index 0000000000..7184141c9f --- /dev/null +++ b/programs/develop/libraries/libs-dev/makefile @@ -0,0 +1,30 @@ +LIBPREFIX=lib +LIBEXT=obj +TESTPREFIX=test + +.PHONY: all + +all: libraries tests + +libraries: + @echo "building libraries..." + @mkdir -p bin + @for i in gfx img ini io; do \ + echo " $(LIBPREFIX)$${i}"; \ + cd "$(LIBPREFIX)$${i}"; \ + fasm "$(LIBPREFIX)$${i}.asm" "../bin/$(LIBPREFIX)$${i}.$(LIBEXT)" >/dev/null; \ + cd ..; \ + done + +tests: + @echo "building tests..." + @mkdir -p bin/.test + @for i in 001 002; do \ + echo " $${i}"; \ + cd ".test/$${i}"; \ + fasm "$(TESTPREFIX)$${i}.asm" "../../bin/.test/$(TESTPREFIX)$${i}" >/dev/null; \ + cd ../..; \ + done + +clean: + rm -rf bin