1
0
Fork 0
forked from fte/fteqw

Updating the plugin Makefiles a little

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2705 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-10-05 09:59:27 +00:00
parent 64ea64fd2c
commit 8e80eff85c
4 changed files with 31 additions and 7 deletions

View file

@ -1,14 +1,28 @@
all: hud irc
all: ezscript hud irc
.PHONY: all hud irc
clean: ezscript-clean hud-clean irc-clean
.PHONY: all ezscript hud irc
help:
@-echo make a subdirectory
ezscript:
$(MAKE) -C ezscript
ezscript-clean:
$(MAKE) clean -C ezscript
hud:
$(MAKE) -C hud
hud-clean:
$(MAKE) clean -C hud
irc:
$(MAKE) -C irc
irc-clean:
$(MAKE) clean -C irc

View file

@ -1,8 +1,12 @@
DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $<
OBJECTS=ezscript.o plugin.o qvm_api.o
HEADERS=../plugin.h
OUTFILE=../ezscriptx86.so
all: $(OBJECTS)
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o ../ezscriptx86.so
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE)
clean:
rm -rf $(OBJECTS) $(OUTFILE)
ezscript.o: ezscript.c $(HEADERS)
$(DO_CC)

View file

@ -1,9 +1,12 @@
DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $<
OBJECTS=ui_sbar.o plugin.o qvm_api.o
HEADERS=../plugin.h
OUTFILE=../hudx86.so
all: $(OBJECTS)
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o ../hudx86.so
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE)
clean:
rm -rf $(OBJECTS) $(OUTFILE)
ui_sbar.o: ui_sbar.c $(HEADERS)
$(DO_CC)

View file

@ -1,9 +1,12 @@
DO_CC=$(CC) -fPIC $(CFLAGS) -o $@ -c $<
OBJECTS=ircclient.o plugin.o qvm_api.o
HEADERS=../plugin.h
OUTFILE=../ircx86.so
all: $(OBJECTS)
gcc --shared -ldl $(OBJECTS) -o ../ircx86.so
gcc --shared -ldl $(OBJECTS) -o $(OUTFILE)
clean:
rm -rf $(OBJECTS) $(OUTFILE)
ircclient.o: ircclient.c $(HEADERS)
$(DO_CC)