~bl4ckb0ne/boson

boson/Makefile -rw-r--r-- 497 bytes
9b178621Simon Zeni setup: print token with loc on BOSON_STAGE lex 9 months 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
29
.POSIX:
.SUFFIXES:
OUTDIR=.builds

include $(OUTDIR)/config.mk

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

.SUFFIXES: .c .o

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

docs:

clean:
	@rm -f boson $(boson_objects)

distclean: clean
	@rm -rf "$(OUTDIR)/config.mk" "$(OUTDIR)/src" "$(OUTDIR)/check.c"

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

.PHONY: docs clean distclean install