2005-05-17 22:05:45 +00:00
|
|
|
DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $<
|
|
|
|
OBJECTS=ui_sbar.o plugin.o qvm_api.o
|
|
|
|
HEADERS=../plugin.h
|
2007-10-05 09:59:27 +00:00
|
|
|
OUTFILE=../hudx86.so
|
2008-05-25 14:23:03 +00:00
|
|
|
ASM=q3asm
|
|
|
|
#ASM=q3asm -vq3 #Uncomment this if you are using Icculus q3asm
|
|
|
|
LCC=q3lcc
|
2007-11-27 16:03:33 +00:00
|
|
|
LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g
|
2005-05-17 22:05:45 +00:00
|
|
|
all: $(OBJECTS)
|
2007-10-05 09:59:27 +00:00
|
|
|
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE)
|
|
|
|
|
2007-11-27 16:03:33 +00:00
|
|
|
qvm:
|
2008-05-25 14:23:03 +00:00
|
|
|
$(LCC) $(LCC_FLAGS) ui_sbar.c; $(LCC) $(LCC_FLAGS) ../plugin.c; $(LCC) $(LCC_FLAGS) ../qvm_api.c; $(ASM) -f qwui
|
2007-10-05 09:59:27 +00:00
|
|
|
clean:
|
2007-11-27 16:03:33 +00:00
|
|
|
rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm
|
2005-05-17 22:05:45 +00:00
|
|
|
|
|
|
|
ui_sbar.o: ui_sbar.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
plugin.o: ../plugin.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
qvm_api.o: ../qvm_api.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|