Browse Source

Rearrange makefile so dependencies won't get overwritten by 'make depend'

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6338 54d463be-8e91-2dee-dedb-b68131a5f0ec
celest 19 years ago
parent
commit
63a226a4a0
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/plugins/Makefile

+ 5 - 4
src/plugins/Makefile

@@ -22,6 +22,11 @@ httpd.$(PLUGINEXT): httpd.c
 	../common/obj/utils.o ../common/obj/ers.o
 	@touch $@
 
+sig.$(PLUGINEXT): sig.c
+	$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
+	../common/obj/showmsg.o
+	@touch $@
+
 gui.$(PLUGINEXT): ../../plugins/gui.conf
 httpd.$(PLUGINEXT): ../../plugins/httpd.conf
 upnp.$(PLUGINEXT): ../../plugins/upnp.conf
@@ -42,9 +47,5 @@ clean:
 
 sample.$(PLUGINEXT): sample.c $(COMMON_H)
 sig.$(PLUGINEXT): sig.c $(COMMON_H)
-	$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
-	../common/obj/showmsg.o
-	@touch $@
-
 pid.$(PLUGINEXT): pid.c $(COMMON_H)
 gui.$(PLUGINEXT): gui.c $(COMMON_H)