diff options
| author | Mistivia <i@mistivia.com> | 2025-07-22 15:28:30 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-07-22 15:28:45 +0800 |
| commit | 999fcf0f7655c03265c222cc67617f0f510979bf (patch) | |
| tree | dd51680ffda411239e37460c834a996dc934dc63 | |
| parent | a8764a20f355fd8fb7b03978d754d1cbd48d0a88 (diff) | |
change dir structure
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | basic_traits.c (renamed from src/basic_traits.c) | 0 | ||||
| -rw-r--r-- | basic_traits.h (renamed from src/basic_traits.h) | 0 | ||||
| -rw-r--r-- | hash_table.c (renamed from src/hash_table.c) | 0 | ||||
| -rw-r--r-- | hash_table.h (renamed from src/hash_table.h) | 0 | ||||
| -rw-r--r-- | list.c (renamed from src/list.c) | 0 | ||||
| -rw-r--r-- | list.h (renamed from src/list.h) | 0 | ||||
| -rw-r--r-- | mmhash.c (renamed from src/mmhash.c) | 0 | ||||
| -rw-r--r-- | mmhash.h (renamed from src/mmhash.h) | 0 | ||||
| -rw-r--r-- | pqueue.c (renamed from src/pqueue.c) | 0 | ||||
| -rw-r--r-- | pqueue.h (renamed from src/pqueue.h) | 0 | ||||
| -rw-r--r-- | rb_tree.h (renamed from src/rb_tree.h) | 0 | ||||
| -rw-r--r-- | sort.c (renamed from src/sort.c) | 0 | ||||
| -rw-r--r-- | sort.h (renamed from src/sort.h) | 0 | ||||
| -rw-r--r-- | str.c (renamed from src/str.c) | 0 | ||||
| -rw-r--r-- | str.h (renamed from src/str.h) | 0 | ||||
| -rw-r--r-- | tree_map.c (renamed from src/tree_map.c) | 0 | ||||
| -rw-r--r-- | tree_map.h (renamed from src/tree_map.h) | 0 | ||||
| -rw-r--r-- | type_alias.h (renamed from src/type_alias.h) | 0 | ||||
| -rw-r--r-- | vec.c (renamed from src/vec.c) | 0 | ||||
| -rw-r--r-- | vec.h (renamed from src/vec.h) | 0 |
21 files changed, 2 insertions, 6 deletions
@@ -9,17 +9,13 @@ else cflags = -flto -O2 endif -src = $(shell ls src/*.c) +src = $(shell ls *.c) obj = $(src:.c=.o) tests=$(shell ls tests/*.c) tests_bin=$(tests:.c=.bin) all: libalgds.a - mkdir -p build/lib - mkdir -p build/include/algds - cp src/*.h build/include/algds - cp libalgds.a build/lib/ libalgds.a: $(obj) ar cr $@ $^ @@ -33,7 +29,7 @@ $(obj):%.o:%.c $(cc) -c $(cflags) $< -MD -MF $@.d -o $@ $(tests_bin):%.bin:%.c libalgds.a - $(cc) $(cflags) -Isrc/ $< libalgds.a -MD -MF $@.d -o $@ + $(cc) $(cflags) -I./ $< libalgds.a -MD -MF $@.d -o $@ clean: -rm -rf build/ diff --git a/src/basic_traits.c b/basic_traits.c index 5d2a8fb..5d2a8fb 100644 --- a/src/basic_traits.c +++ b/basic_traits.c diff --git a/src/basic_traits.h b/basic_traits.h index 45aaba9..45aaba9 100644 --- a/src/basic_traits.h +++ b/basic_traits.h diff --git a/src/hash_table.c b/hash_table.c index bedeb4a..bedeb4a 100644 --- a/src/hash_table.c +++ b/hash_table.c diff --git a/src/hash_table.h b/hash_table.h index 9b45dff..9b45dff 100644 --- a/src/hash_table.h +++ b/hash_table.h diff --git a/src/rb_tree.h b/rb_tree.h index 7c91cea..7c91cea 100644 --- a/src/rb_tree.h +++ b/rb_tree.h diff --git a/src/tree_map.c b/tree_map.c index 0232a54..0232a54 100644 --- a/src/tree_map.c +++ b/tree_map.c diff --git a/src/tree_map.h b/tree_map.h index 5e905a8..5e905a8 100644 --- a/src/tree_map.h +++ b/tree_map.h diff --git a/src/type_alias.h b/type_alias.h index 8f818ed..8f818ed 100644 --- a/src/type_alias.h +++ b/type_alias.h |
