make qvm almost works...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2999 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2008-06-04 21:09:30 +00:00
parent f0b6bf19d3
commit 121ea522fe

View file

@ -2,11 +2,17 @@ DO_CC=$(CC) -fPIC $(CFLAGS) -o $@ -c $<
OBJECTS=ircclient.o plugin.o qvm_api.o OBJECTS=ircclient.o plugin.o qvm_api.o
HEADERS=../plugin.h HEADERS=../plugin.h
OUTFILE=../ircx86.so 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) 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: clean:
rm -rf $(OBJECTS) $(OUTFILE) rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm
ircclient.o: ircclient.c $(HEADERS) ircclient.o: ircclient.c $(HEADERS)
$(DO_CC) $(DO_CC)