root/src/plugins/Makefile.in @ 17

Revision 1, 1.6 kB (checked in by jinshiro, 17 years ago)
Line 
1
2COMMON_OBJ = ../common/obj_all/showmsg.o ../common/obj_all/utils.o ../common/obj_all/strlib.o \
3        ../common/obj_all/minimalloc.o
4COMMON_H = ../common/plugin.h ../common/cbasetypes.h \
5        ../common/showmsg.h ../common/utils.h ../common/strlib.h \
6        ../common/malloc.h
7
8PLUGINS = sample sig pid gui upnp console
9
10@SET_MAKE@
11
12#####################################################################
13.PHONY : all $(PLUGINS) clean help
14
15all: $(PLUGINS)
16
17sample: sample@DLLEXT@
18
19sig: sig@DLLEXT@
20
21pid: pid@DLLEXT@
22
23gui: gui@DLLEXT@
24
25upnp: upnp@DLLEXT@
26
27console: console@DLLEXT@
28
29clean:
30        rm -rf *.o
31
32help:
33        @echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"
34        @echo "'sample'   - sample plugin"
35        @echo "'sig'      - signal handler plugin"
36        @echo "'pid'      - process id plugin"
37        @echo "'gui'      - gui plugin"
38        @echo "'upnp'     - upnp plugin"
39        @echo "'console'  - console plugin"
40        @echo "'all'      - builds all above targets"
41        @echo "'clean'    - cleans builds and objects"
42        @echo "'help'     - outputs this message"
43
44#####################################################################
45
46%@DLLEXT@: %.c
47        @CC@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ -shared -o ../../plugins/$@ $<
48
49gui@DLLEXT@: ../../plugins/gui.conf
50upnp@DLLEXT@: ../../plugins/upnp.conf
51
52sig@DLLEXT@: sig.c $(COMMON_OBJ)
53        @CC@ @CFLAGS@ $(CUSTOM_CFLAGS) @CPPFLAGS@ @LDFLAGS@ -shared -o ../../plugins/$@ $< $(COMMON_OBJ)
54
55../../plugins/%.conf: %.txt
56        cp -r $< $@
57
58# missing common object files
59../common/obj_all/%.o: ../common/%.c $(COMMON_H)
60        @$(MAKE) -C ../common txt
61
62../common/obj_all/mini%.o: ../common/%.c $(COMMON_H)
63        @$(MAKE) -C ../common txt
Note: See TracBrowser for help on using the browser.