-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
46 lines (31 loc) · 842 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#Makefile autogenerated by RcB2
prefix = /usr/local
bindir = $(prefix)/bin
PROG = jobflow
SRCS = sblist.c \
jobflow.c
LIBS =
CFLAGS_N =
CPPFLAGS_N =
LDFLAGS_N =
OBJS = $(SRCS:.c=.o)
MAKEFILE := $(firstword $(MAKEFILE_LIST))
-include config.mak
all: $(PROG)
clean:
rm -f $(PROG)
rm -f $(OBJS)
rebuild:
$(MAKE) -f $(MAKEFILE) clean && $(MAKE) -f $(MAKEFILE) all
install: $(PROG)
install -d $(DESTDIR)/$(bindir)
install -D -m 755 $(PROG) $(DESTDIR)/$(bindir)/
src: $(SRCS)
$(CC) $(CPPFLAGS_N) $(CPPFLAGS) $(CFLAGS_N) $(CFLAGS) -o $(PROG) $^ $(LDFLAGS_N) $(LDFLAGS) $(LIBS)
%.o: %.c
$(CC) $(CPPFLAGS_N) $(CPPFLAGS) $(CFLAGS_N) $(CFLAGS) $(CFLAGS_RCB) -c -o $@ $<
$(PROG): $(OBJS)
$(CC) $(CFLAGS_N) $(CFLAGS) $(LDFLAGS_N) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
check:
sh test.sh
.PHONY: all clean rebuild install src check