diff --git a/C/Makefile b/C/Makefile index 9c84bcc..3487e09 100644 --- a/C/Makefile +++ b/C/Makefile @@ -20,6 +20,6 @@ example: sources headers build make -C example clean: + rm -rf ./build/* make -C include clean - make -C src clean - make -C example clean + make -C src clean \ No newline at end of file diff --git a/C/example/Makefile b/C/example/Makefile index 8764cbe..0c30198 100644 --- a/C/example/Makefile +++ b/C/example/Makefile @@ -1,11 +1,6 @@ CFLAGS=-O3 -funroll-loops -fmax-errors=1 -.PHONY: clean - all: example example: example.c - gcc $< -I../include -L../build/ -lcodata $(CFLAGS) $(FPM_CFLAGS) -o ../build/$@ -Wl,-rpath=. - -clean: - rm -rf ./build/example* + gcc $< -I../include -L../build/ -lcodata $(CFLAGS) $(FPM_CFLAGS) -o ../build/$@ -Wl,-rpath=. \ No newline at end of file diff --git a/C/src/Makefile b/C/src/Makefile index 0d099ab..2390095 100644 --- a/C/src/Makefile +++ b/C/src/Makefile @@ -47,5 +47,4 @@ shared_windows: $(CC) -shared $(FPM_LDFLAGS) -o $(CBUILD_DIR)/$(LIBNAME).dll -Wl,--out-implib=$(CBUILD_DIR)/$(LIBNAME).dll.a,--export-all-symbols,--enable-auto-import,--whole-archive $(CBUILD_DIR)/$(LIBNAME).a -Wl,--no-whole-archive clean: - rm -rf $(C_SRC) - rm -rf $(CBUILD_DIR)/* + rm -rf $(C_SRC) \ No newline at end of file