Kaynağa Gözat

Add outdir to LD flags.

scossu 2 yıl önce
ebeveyn
işleme
366df24595
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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*