mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 03:51:32 +00:00
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:
parent
f0b6bf19d3
commit
121ea522fe
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue