git.droids-corp.org
/
libcmdline.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cmdline: new build system
[libcmdline.git]
/
libcmdline.prog.mk
1
VPATH += $(SRCDIR)/$(S)
2
3
OBJS := $(SRCS:%.c=%.o)
4
DEPS := $(SRCS:%.c=%.d)
5
6
all: $(PROG)
7
8
$(PROG): $(OBJS)
9
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
10
11
%.o: %.c
12
$(CC) -Wp,-MD,$(@:%.o=%.d) $(CFLAGS) -o $@ -c $<
13
14
clean:
15
rm -f $(OBJS) $(DEPS) $(PROG)
16
17
install:
18
19
uninstall:
20
21
.PHONY: all clean install uninstall
22
23
-include $(DEPS)