commit 270dde44832f0ae876d924dcaf8a32febbfa4e66
parent 36c19de8bac33715b46ab6509290619b4f5f6bb9
Author: Matsuda Kenji <info@mtkn.jp>
Date: Thu, 22 Dec 2022 11:17:29 +0900
use variable
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ex2/Makefile b/ex2/Makefile
@@ -1,10 +1,10 @@
INCS=-I/usr/X11R6/include
CFLAGS=-Wall -Wextra -std=c11
-LIBS=-L/usr/X11R6/lib -lX11 -lXext
+LIBS=-L/usr/X11R6/lib -lX11 -lXext -lm
IN=*.c
OUT=ex2
-all: main.c
+all: $(IN)
$(CC) $(INCS) $(CFLAGS) -o $(OUT) $(IN) $(LIBS)
run: all