diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | src/km-draw.c (renamed from km-draw.c) | 0 | ||||
-rw-r--r-- | src/km-find.c (renamed from km-find.c) | 0 | ||||
-rw-r--r-- | src/km-init-forgy.c (renamed from km-init-forgy.c) | 0 | ||||
-rw-r--r-- | src/km-init-kmeans.c (renamed from km-init-kmeans.c) | 0 | ||||
-rw-r--r-- | src/km-init-rand.c (renamed from km-init-rand.c) | 0 | ||||
-rw-r--r-- | src/km-init.c (renamed from km-init.c) | 0 | ||||
-rw-r--r-- | src/km-load.c (renamed from km-load.c) | 0 | ||||
-rw-r--r-- | src/km-rand-erand48.c (renamed from km-rand-erand48.c) | 0 | ||||
-rw-r--r-- | src/km-rand-libc.c (renamed from km-rand-libc.c) | 0 | ||||
-rw-r--r-- | src/km-rand-path.c (renamed from km-rand-path.c) | 0 | ||||
-rw-r--r-- | src/km-rand.c (renamed from km-rand.c) | 0 | ||||
-rw-r--r-- | src/km-set.c (renamed from km-set.c) | 0 | ||||
-rw-r--r-- | src/km-solve.c (renamed from km-solve.c) | 0 | ||||
-rw-r--r-- | src/km.h (renamed from km.h) | 0 | ||||
-rw-r--r-- | src/main.c (renamed from main.c) | 0 | ||||
-rw-r--r-- | src/stb_image_write.h (renamed from stb_image_write.h) | 0 | ||||
-rw-r--r-- | src/util.h (renamed from util.h) | 0 |
19 files changed, 7 insertions, 6 deletions
@@ -1,3 +1,3 @@ -*.o +src/*.o km-test *.png @@ -1,8 +1,9 @@ APP=km-test CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O2 -OBJS=km-set.o km-draw.o km-load.o km-find.o km-rand.o km-solve.o \ - km-init-rand.o km-init-forgy.o km-init-kmeans.o km-init.o main.o \ - km-rand-libc.o km-rand-path.o km-rand-erand48.o +OBJS=src/km-set.o src/km-draw.o src/km-load.o src/km-find.o \ + src/km-rand.o src/km-solve.o src/km-init-rand.o src/main.o \ + src/km-init-forgy.o src/km-init-kmeans.o src/km-init.o \ + src/km-rand-libc.o src/km-rand-path.o src/km-rand-erand48.o LIBS=-lm .PHONY=all clean @@ -11,8 +12,8 @@ all: $(APP) $(APP): $(OBJS) $(CC) $(CFLAGS) -o $(APP) $(OBJS) $(LIBS) -%.o: %.c +%.o: src/%.c $(CC) -c $(CFLAGS) $< clean: - $(RM) $(OBJS) + $(RM) $(APP) $(OBJS) diff --git a/km-draw.c b/src/km-draw.c index ddf1b26..ddf1b26 100644 --- a/km-draw.c +++ b/src/km-draw.c diff --git a/km-find.c b/src/km-find.c index 657c645..657c645 100644 --- a/km-find.c +++ b/src/km-find.c diff --git a/km-init-forgy.c b/src/km-init-forgy.c index 5ff0c12..5ff0c12 100644 --- a/km-init-forgy.c +++ b/src/km-init-forgy.c diff --git a/km-init-kmeans.c b/src/km-init-kmeans.c index f0c1b5f..f0c1b5f 100644 --- a/km-init-kmeans.c +++ b/src/km-init-kmeans.c diff --git a/km-init-rand.c b/src/km-init-rand.c index 1f59da8..1f59da8 100644 --- a/km-init-rand.c +++ b/src/km-init-rand.c diff --git a/km-init.c b/src/km-init.c index 280ea81..280ea81 100644 --- a/km-init.c +++ b/src/km-init.c diff --git a/km-load.c b/src/km-load.c index 3615aa9..3615aa9 100644 --- a/km-load.c +++ b/src/km-load.c diff --git a/km-rand-erand48.c b/src/km-rand-erand48.c index de84b93..de84b93 100644 --- a/km-rand-erand48.c +++ b/src/km-rand-erand48.c diff --git a/km-rand-libc.c b/src/km-rand-libc.c index da1e4b0..da1e4b0 100644 --- a/km-rand-libc.c +++ b/src/km-rand-libc.c diff --git a/km-rand-path.c b/src/km-rand-path.c index 6597038..6597038 100644 --- a/km-rand-path.c +++ b/src/km-rand-path.c diff --git a/km-rand.c b/src/km-rand.c index e777069..e777069 100644 --- a/km-rand.c +++ b/src/km-rand.c diff --git a/km-solve.c b/src/km-solve.c index f579a41..f579a41 100644 --- a/km-solve.c +++ b/src/km-solve.c diff --git a/stb_image_write.h b/src/stb_image_write.h index c05e958..c05e958 100644 --- a/stb_image_write.h +++ b/src/stb_image_write.h |