[prev in list] [next in list] [prev in thread] [next in thread]
List: argante
Subject: [argante] CYGWIN patches :)
From: Mariusz Woloszyn <emsi () ipartners ! pl>
Date: 2001-05-17 13:07:30
[Download RAW message or body]
A oto patche pozwalające na skompilowanie i uruchomienie szkieletowej
wersji argante (bez modułów) :).
--
Mariusz Wołoszyn
Internet Security Specialist, Internet Partners
-- Attached file included as plaintext by Listar --
-- File: build.diff
--- build Mon Dec 11 22:09:28 2000
+++ ../build Thu May 17 12:34:56 2001
@@ -107,6 +107,15 @@
exit $?
fi
+ISCYGWIN=`echo $SYS| grep CYG`
+
+if [ ! "$ISCYGWIN" = "" ]; then
+ CFLAGS="$CFLAGS $ADDFLAGS"
+ export CFLAGS
+ make -f sysdep/Makefile.cygwin "$@"
+ exit $?
+fi
+
echo
echo "ERROR:"
echo " Argante has not been tested with your system (`uname -s`)."
-- Attached file included as plaintext by Listar --
-- File: Makefile.cygwin
#
# Argante Virtual OS
# (C) 2000 Michal Zalewski <lcamtuf@ids.pl>
#
# Makefile for cygwin
#
# Status: done
#
# Author: Michal Zalewski <lcamtuf@ids.pl>
# Maintainer: Michal Zalewski <lcamtuf@ids.pl>
#
OBJECTS = kernel/bcode.o kernel/console.o kernel/manager.o kernel/module.o \
kernel/task.o kernel/acman.o kernel/debugger.o kernel/cmd.o
MODULES = display fs ipc network advmem access locallib math \
packet
TOOLS = tools/actest tools/binedit tools/disasm tools/vcpucons tools/agtexe
CMPLR = compiler/agtc
HLLT = hll/ahlt
MAIN = kernel/main-boot.c
OFILE = argante
CFLAGS += -Iinclude -Imodules -fomit-frame-pointer -O9 -ffast-math -Wall -fforce-mem \
-fforce-addr -fcaller-saves -fstrength-reduce -fthread-jumps -funroll-loops \
-fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -fexpensive-optimizations \
-fschedule-insns2 -m486 LIBS +=
CC = gcc
IDSTR = "`whoami`@`uname -n` on `date +'%A, %d %B %Y, %H:%M'`"
all: autogen $(OBJECTS) $(OFILE) $(CMPLR) $(HLLT) $(TOOLS)
guis:
@echo "Trying to build GUIs (X and ncurses, ignore errors)..."
cd tools/GMI;make || true
autogen: include/exception.h modules/syscall.h
compiler/autogen.sh
include/autogen.sh
$(OFILE): $(MAIN) modules
$(CC) $(LIBS) $(CFLAGS) $(MAIN) -o $(OFILE) $(OBJECTS) -D IDSTR=\"$(IDSTR)\"
# strip $(OFILE).exe
for i in $(MODULES); do \
echo "Compiling $$i module..."; \
$(CC) -shared $(CFLAGS) modules/$$i.c -o modules/$$i.so; \
strip modules/$$i.so; \
done
cd tools/ripc-daemon; test -f /usr/include/openssl/ssl.h && make -f Makefile.ssl || \
true cd tools/ripc-daemon; test -f /usr/include/openssl/ssl.h || make -f \
Makefile.nossl
compiler: $(CMPLR)
hllt: $(HLLT)
test: clean all
./compiler/agtc compiler/examples/hello.agt
./compiler/agtc compiler/examples/fs.agt
./compiler/agtc compiler/examples/tcp.agt
cd Examples/Mini-HTTP;./BUILD 1
@sleep 1
./$(OFILE) conf/scripts/test.scr
publish: clean
rm -f arg.tgz ; cd .. ; tar cfvz arg.tgz Argante;cd Argante
scp ../arg.tgz lcamtuf@dione.ids.pl:public_html/arg.tgz
scp README lcamtuf@dione.ids.pl:buka.org/agt/AgtDoc.txt -C
# scp Documentation/Advocacy lcamtuf@dione.ids.pl:buka.org/agt/advocacy.txt -C
scp Documentation/ChangeLog lcamtuf@dione.ids.pl:buka.org/agt/ChangeLog -C
sysdep/announce
rm -f ../arg.tgz
clean:
rm -f kernel/*.o modules/*.so core $(OFILE) $(CMPLR) compiler/examples/*.img \
compiler/autogen.h tools/actest include/autogen-debug.h tools/binedit tools/disasm \
$(HLLT) tools/ripcd cd tools/GMI;make clean
softclean:
rm -f kernel/*.o modules/*.so core $(OFILE) $(CMPLR) compiler/autogen.h tools/actest \
tools/binedit tools/disasm $(HLLT)
install: clean all
rm -rf /usr/doc/Argante /usr/lib/argante
cp argante /usr/bin/argante
mkdir /usr/lib/argante || true
cp modules/*.so /usr/lib/argante
cp tools/agt* tools/vcpucons /usr/bin
cp tools/ripcd /usr/bin
cp -r Documentation /usr/doc/Argante
cp -r conf /usr/lib/argante/conf
cp -r hll/include /usr/lib/argante/hll-include
cp -r Examples /usr/doc/Argante/
cp compiler/agtc /usr/bin/
cp hll/ahlt hll/elim hll/acc /usr/bin/
cp Documentation/man/* /usr/man/man1
gtkagt:
test -f /usr/include/gtk/gtk.h && ( cd tools/gtkagt;make );true
-- -----------------------------------------------------------------------
Unsubscribe: mail argante-request@linuxpl.org -s unsubscribe </dev/null
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic