diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-28 02:22:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-28 02:22:12 +0200 |
commit | e0459b5d02aa16626b2c70e25c9d8d477b2e6684 (patch) | |
tree | 8167f9a73876e165af93349579b756b652fa411c /mk/build.mk | |
parent | mds-kbdc will need multiple .c files + .h files are not required during linking (diff) | |
download | mds-e0459b5d02aa16626b2c70e25c9d8d477b2e6684.tar.gz mds-e0459b5d02aa16626b2c70e25c9d8d477b2e6684.tar.bz2 mds-e0459b5d02aa16626b2c70e25c9d8d477b2e6684.tar.xz |
split mds-kbdc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | mk/build.mk | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/mk/build.mk b/mk/build.mk index d513a73..7fa2d24 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -62,7 +62,6 @@ endif # Link utilies that do not use mds-base. - ifneq ($(LIBMDSSERVER_IS_INSTALLED),y) bin/mds-kbdc: $(OBJ_mds-kbdc) bin/libmdsserver.so else @@ -72,15 +71,38 @@ endif $(CC) $(C_FLAGS) -o $@ $(LDS) $(LDS_mds-kbdc) $(OBJ_mds-kbdc) -# Build object files for kernel/servers. +# Build object files for kernel/servers/utilities. ifneq ($(LIBMDSSERVER_IS_INSTALLED),y) -obj/%.o: src/%.c $(shell dirname src/%)/*.h src/mds-base.h src/libmdsserver/*.h $(SEDED) +obj/%.o: src/%.c src/%.h src/mds-base.h src/libmdsserver/*.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -Isrc -c -o $@ $< +obj/%.o: src/%.c src/mds-base.h src/libmdsserver/*.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -Isrc -c -o $@ $< +obj/mds-server/%.o: src/%.c src/mds-server/*.h src/mds-base.h src/libmdsserver/*.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -Isrc -c -o $@ $< +obj/mds-registry/%.o: src/%.c src/mds-registry/*.h src/mds-base.h src/libmdsserver/*.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -Isrc -c -o $@ $< +obj/mds-kbdc/%.o: src/%.c src/mds-kbdc/*.h src/libmdsserver/*.h $(SEDED) mkdir -p $(shell dirname $@) $(CC) $(C_FLAGS) -Isrc -c -o $@ $< - else -obj/%.o: src/%.c $(shell dirname src/%)/*.h src/mds-base.h $(SEDED) +obj/%.o: src/%.c src/%.h src/mds-base.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -c -o $@ $< +obj/%.o: src/%.c src/mds-base.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -c -o $@ $< +obj/mds-server/%.o: src/%.c src/mds-server/*.h src/mds-base.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -c -o $@ $< +obj/mds-registry/%.o: src/%.c src/mds-registry/*.h src/mds-base.h $(SEDED) + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -c -o $@ $< +obj/mds-kbdc/%.o: src/%.c src/mds-kbdc/*.h $(SEDED) mkdir -p $(shell dirname $@) $(CC) $(C_FLAGS) -c -o $@ $< endif |