aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: b5506960a46bd65b02f77d48c1d8e5521345ab41 (plain) (tree)
1
2
3
4
5
6
7
8






                                                     
                                



                                  
                        

                      
                                                                                 






                                       
# bus - simple message broadcasting IPC system
# See LICENSE file for copyright and license details.

all: bus

bus: bin/bus

bin/bus: obj/cmdline.o obj/bus.o
	@echo CC -o $@
	@mkdir -p bin
	@${CC} -o $@ $^ ${LDFLAGS}

obj/%.o: src/%.c src/*.h
	@echo CC -c $<
	@mkdir -p obj
	@${CC} -Wall -Wextra -pedantic -std=c99 -c -o $@ ${CPPFLAGS} ${CFLAGS} $<

clean:
	@echo cleaning
	@-rm -rf obj bin

.PHONY: all bus clean install uninstall