Use CC in makefile instead of g++ directly
This commit is contained in:
4
Makefile
4
Makefile
@@ -12,7 +12,7 @@ $(NAME): ofiles
|
|||||||
ar rcs $(NAME) $(OFILES)
|
ar rcs $(NAME) $(OFILES)
|
||||||
|
|
||||||
ofiles:
|
ofiles:
|
||||||
g++ $(CFLAGS) -std=c++20 -g -O0 -c $(CFILES)
|
$(CC) $(CFLAGS) -std=c++20 -g -O0 -c $(CFILES)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OFILES)
|
rm -f $(OFILES)
|
||||||
@@ -23,7 +23,7 @@ fclean:
|
|||||||
re: fclean $(NAME)
|
re: fclean $(NAME)
|
||||||
|
|
||||||
build: all
|
build: all
|
||||||
g++ -std=c++20 -o server main.cpp -L. -lhttpablu
|
$(CC) -std=c++20 -o server main.cpp -L. -lhttpablu
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
./server
|
./server
|
||||||
|
|||||||
Reference in New Issue
Block a user