From 308f298aba9f889586bbedb65adcd68b8fe4f174 Mon Sep 17 00:00:00 2001
From: BeomSooHeo <pung725@ajou.ac.kr>
Date: Sun, 9 Aug 2020 03:30:20 +0900
Subject: [PATCH] end

---
 three_files_folder/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/three_files_folder/Makefile b/three_files_folder/Makefile
index ecb08a8..b2a7524 100644
--- a/three_files_folder/Makefile
+++ b/three_files_folder/Makefile
@@ -1,13 +1,16 @@
 SRCS = main.c func.c
 OBJS = $(SRCS:.c=.o)
 CC = gcc
-CFLAGS = -c -O -Wall
+CFLAGS = -O -Wall
+CXX = -c -O -Wall
+MACRO =
+
 
 test : $(OBJS)
-	$(CC) -o $@ $^
+	$(CC) $(MACRO) $(CFLAGS) $^ -o $@
 
 .c.o:
-	$(CC) $(CFLAGS) $<
+	$(CC) $(CXX) $<
 
 
 clean:
-- 
GitLab