Skip to content

Commit

Permalink
Update Makefiles for C code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 20, 2024
1 parent b4da50e commit 7093cbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions C/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 1 addition & 6 deletions C/example/Makefile
Original file line number Diff line number Diff line change
@@ -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=.
3 changes: 1 addition & 2 deletions C/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7093cbe

Please sign in to comment.