fix bug parsing last argv
[rofl0r-jobflow.git] / Makefile
blobaaa434dd9df5802c198aaf4dc02c2517dc496d21
1 #Makefile autogenerated by RcB2
2 prefix = /usr/local
3 bindir = $(prefix)/bin
5 PROG = jobflow
6 SRCS = sblist.c \
7 jobflow.c
9 LIBS =
11 CFLAGS_N =
12 CPPFLAGS_N =
13 LDFLAGS_N =
15 OBJS = $(SRCS:.c=.o)
17 MAKEFILE := $(firstword $(MAKEFILE_LIST))
19 -include config.mak
21 all: $(PROG)
23 clean:
24 rm -f $(PROG)
25 rm -f $(OBJS)
27 rebuild:
28 $(MAKE) -f $(MAKEFILE) clean && $(MAKE) -f $(MAKEFILE) all
30 install: $(PROG)
31 install -d $(DESTDIR)/$(bindir)
32 install -D -m 755 $(PROG) $(DESTDIR)/$(bindir)/
34 src: $(SRCS)
35 $(CC) $(CPPFLAGS_N) $(CPPFLAGS) $(CFLAGS_N) $(CFLAGS) -o $(PROG) $^ $(LDFLAGS_N) $(LDFLAGS) $(LIBS)
37 %.o: %.c
38 $(CC) $(CPPFLAGS_N) $(CPPFLAGS) $(CFLAGS_N) $(CFLAGS) $(CFLAGS_RCB) -c -o $@ $<
40 $(PROG): $(OBJS)
41 $(CC) $(CFLAGS_N) $(CFLAGS) $(LDFLAGS_N) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
43 .PHONY: all clean rebuild install src