diff options
author | latex <latex@disroot.org> | 2023-02-11 02:01:21 +0100 |
---|---|---|
committer | latex <latex@disroot.org> | 2023-02-11 02:01:21 +0100 |
commit | 82ca959ff701832e96c869161adc5e179c2201dd (patch) | |
tree | 3a819f5b26cfd3703a229eaf2ea187c3fa60a0ef /Makefile | |
parent | 79c59f93b7461082cf4aec3025257560fc788c69 (diff) | |
download | libumumble-master.tar.gz |
* restructed include/ to have a umumble folder * fix the makefile to use the new include structure * tests makefile now builds inside root build folder * added TODO list for shit I gotta do * laid groundwork for packet parsing/packing: mumble_packet_gen_header
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile index 0e60318..fc0e340 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ SRC += $(NANOPB_DIR)/pb_common.c PROTO = $(shell find src/ -type f -name '*.proto') OBJ = $(PROTO:%.proto=$(BUILD_DIR)/%.pb.c.o) OBJ += $(SRC:%=$(BUILD_DIR)/%.o) -H = include/libumumble.h +INCLUDE = $(shell find include/) .PHONY: all static shared tests clean install-static install-shared install @@ -31,16 +31,16 @@ $(BUILD_DIR)/%.c.o: %.c mkdir -p '$(@D)' $(CC) -c -o $@ $(INCLUDES) $(CFLAGS) $< -tests: +tests: $(SNAME) $(MAKE) -C tests clean: rm -rf $(SNAME) $(DNAME) $(BUILD_DIR) src/*.pb.h src/*.pb.c $(MAKE) -C tests clean -install-header: $(H) +install-header: $(INCLUDE) install -d $(DESTDIR)$(INCLUDEDIR) - install -m 644 $^ $(DESTDIR)$(INCLUDEDIR) + cp -Rv include/. $(DESTDIR)$(INCLUDEDIR) install-static: $(SNAME) install -d $(DESTDIR)$(LIBDIR) |