~bl4ckb0ne/boson

ref: 1eebe4d73a4484cd26d3b5569bb7737127c12bd0 boson/Makefile -rw-r--r-- 453 bytes
1eebe4d7Simon Zeni improve build process a month ago
                                                                                
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
.POSIX:
.SUFFIXES:
OUTDIR=.build
include $(OUTDIR)/config.mk

boson: $(boson_objects)
	@printf 'CCLD\t$@\n'
	@$(CC) $(LDFLAGS) -o $@ $(boson_objects) $(LIBS)

.SUFFIXES: .c .o .ha

.c.o:
	@printf 'CC\t$@\n'
	@$(CC) -c $(CFLAGS) -o $@ $<

docs:

clean:
	@rm -f boson $(boson_objects)

distclean: clean
	@rm -rf "$(OUTDIR)"

install: boson
	mkdir -p $(DESTDIR)$(BINDIR)
	install -m755 boson $(DESTDIR)$(BINDIR)/boson

.PHONY: docs clean distclean install