ucx/Makefile

changeset 747
efbd59642577
parent 742
7e67689241fd
child 750
4d7a2238c5ac
--- a/ucx/Makefile	Sun Apr 16 14:12:24 2023 +0200
+++ b/ucx/Makefile	Fri Apr 21 21:25:32 2023 +0200
@@ -1,7 +1,7 @@
 #
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 #
-# Copyright 2016 Olaf Wintermann. All rights reserved.
+# Copyright 2013 Olaf Wintermann. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
@@ -26,34 +26,35 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
-BUILD_ROOT = ..
-
+BUILD_ROOT = ../
 include ../config.mk
 
 # list of source files
-SRC  = utils.c
+SRC  = allocator.c
+SRC += array_list.c
+SRC += basic_mempool.c
+SRC += buffer.c
+SRC += compare.c
+SRC += hash_key.c
+SRC += hash_map.c
+SRC += linked_list.c
 SRC += list.c
-SRC += map.c
-SRC += avl.c
-SRC += properties.c
-SRC += mempool.c
+SRC += printf.c
 SRC += string.c
-SRC += test.c
-SRC += allocator.c
-SRC += logging.c
-SRC += buffer.c
-SRC += stack.c
-SRC += ucx.c
+SRC += utils.c
+
+OBJ   = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
+
+UCX_LIB = ../build/lib/libucx$(LIB_EXT)
 
-OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
+all: ../build/ucx $(UCX_LIB)
 
-all: ../build/ucx ../build/libucx$(LIB_EXT)
+$(UCX_LIB): $(OBJ)
+	$(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ)
 
-../build/libucx$(LIB_EXT): $(OBJ)
-	$(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx$(LIB_EXT) $(OBJ)
+../build/ucx:
+	mkdir -p ../build/ucx
 
 ../build/ucx/%$(OBJ_EXT): %.c
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) $(CFLAGS) -o $@ -c $<
 
-../build/ucx:
-	$(MKDIR) $(MKDIRFLAGS) ../build/ucx

mercurial