forked from scott/threaded_network_chat
update makefile for better compatibility across platforms
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,7 +1,7 @@
|
||||
# Compiler and flags
|
||||
TARGET = ct
|
||||
CXX = g++
|
||||
CXXFLAGS = -pthread -Wall -Wextra -O2 -std=c++17 -lcurses -g
|
||||
CXXFLAGS = -pthread -Wall -Wextra -O2 -std=c++17 -lncurses -g
|
||||
|
||||
SRC = $(wildcard *.cc)
|
||||
OBJ = $(SRC:.cc=.o)
|
||||
@@ -12,7 +12,7 @@ clean:
|
||||
rm -f $(TARGET) *.o
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CXX) $(CXXFLAGS) $(OBJ) -o $(TARGET)
|
||||
$(CXX) $(OBJ) $(CXXFLAGS) -o $(TARGET)
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
$(CXX) -c $< $(CXXFLAGS) -o $@
|
||||
|
||||
Reference in New Issue
Block a user