root/common/include/plugin.mak @ 00fb3cb53077938d69d3e05f886c7005b4ada88e

Revision 00fb3cb53077938d69d3e05f886c7005b4ada88e, 0.6 KB (checked in by dsmith <dsmith@…>, 6 years ago)

Makefile install fix (explicitly create install directories)

git-svn-id: http://abstrakraft.org/cwiid/svn/trunk@26 918edb2d-ff29-0410-9de2-eb38e7f22bc7

  • Property mode set to 100644
Line 
1#Copyright (C) 2007 L. Donnie Smith
2
3LIB_NAME = $(PLUGIN_NAME).so
4
5OBJECTS = $(SOURCES:.c=.o)
6DEPS    = $(SOURCES:.c=.d)
7
8CFLAGS += -fpic
9
10all: $(LIB_NAME)
11
12$(LIB_NAME): $(OBJECTS)
13        $(CC) -shared $(LDFLAGS) $(LDLIBS) -o $(LIB_NAME) $(OBJECTS)
14
15install: $(LIB_NAME)
16        install -d $(INST_DIR)
17        install $(LIB_NAME) $(INST_DIR)
18
19clean:
20        rm -f $(LIB_NAME) $(OBJECTS) $(DEPS)
21
22uninstall:
23        rm -f $(INST_DIR)/$(LIB_NAME)
24
25ifneq ($(MAKECMDGOALS),clean)
26ifneq ($(MAKECMDGOALS),distclean)
27include $(COMMON)/include/dep.mak
28-include $(DEPS)
29endif
30endif
31
32.PHONY: all install clean uninstall
Note: See TracBrowser for help on using the browser.