Browse Source

Add outdir to LD flags.

scossu 1 year ago
parent
commit
366df24595
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Makefile

+ 3 - 3
Makefile

@@ -19,8 +19,8 @@ INCLUDE = -I. -Iinclude -I$(includedir)
 # Link all ext libraries statically.
 CFLAGS += -std=gnu11 -Wall -fPIC -MMD $(INCLUDE)
 DBG_CFLAGS = -Itest -O0 -g3 -DDEBUG
-LDFLAGS = -L. -L$(libdir) -llsuprdf
-DBG_LDFLAGS = -L. -L$(libdir) -llsuprdf_dbg
+LDFLAGS = -L. -L$(outdir) -L$(libdir) -llsuprdf
+DBG_LDFLAGS = -L. -L$(outdir) -L$(libdir) -llsuprdf_dbg
 
 SRC = $(wildcard src/*.c)
 OBJ = $(SRC:.c=.o)
@@ -95,7 +95,7 @@ debug_install: install debug ## Install default and debug libraries.
 
 .PHONY: clean
 clean:
-	rm -rf src/*.[aod]
+	rm -rf ./*.[aod] src/*.[aod]
 	rm -f $(LIBS) bin/test*