From 121ea522fe5e25ef2c1b0e50c3cc222bd7825b0c Mon Sep 17 00:00:00 2001 From: Molgrum Date: Wed, 4 Jun 2008 21:09:30 +0000 Subject: [PATCH] make qvm almost works... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2999 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- plugins/irc/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/irc/Makefile b/plugins/irc/Makefile index 57f52d41d..067f12ae0 100644 --- a/plugins/irc/Makefile +++ b/plugins/irc/Makefile @@ -2,11 +2,17 @@ DO_CC=$(CC) -fPIC $(CFLAGS) -o $@ -c $< OBJECTS=ircclient.o plugin.o qvm_api.o HEADERS=../plugin.h OUTFILE=../ircx86.so +ASM=q3asm +#ASM=q3asm -vq3 #Uncomment this if you are using Icculus q3asm +LCC=q3lcc +LCC_FLAGS=-DQ3_VM -I/usr/include -S -Wf-target=bytecode -Wf-g all: $(OBJECTS) - gcc --shared -ldl $(OBJECTS) -o $(OUTFILE) + $(CC) --shared -ldl $(OBJECTS) -o $(OUTFILE) +qvm: + $(LCC) $(LCC_FLAGS) ircclient.c; $(LCC) $(LCC_FLAGS) ../plugin.c; $(LCC) $(LCC_FLAGS) ../qvm_api.c; $(ASM) -f ircclient clean: - rm -rf $(OBJECTS) $(OUTFILE) + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm ircclient.o: ircclient.c $(HEADERS) $(DO_CC)