root/common/include/app.mak @ 16c16f01a7ceeab9b205f6d94920f94fbdd4da9f

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

Corrected installation directory creation; nonparallel make

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

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