ramik_dev/Makefile
2024-06-15 17:09:46 -04:00

25 lines
470 B
Makefile
Executable File

CC := g++
CFLAGS := -Wall -g -std=c++23 -I./include/
TARGET := server
LIBPATHS :=
LIBS := -lcurl
SRCS := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp, %.o, $(SRCS))
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LIBPATHS) -o $@ $^ $(LIBS)
%.o: %.cpp
$(CC) $(CFLAGS) -lpthread -c $<
clean:
rm -rf $(TARGET) *.o
all: run
build: $(TARGET)
run: build
./$(TARGET)
pch: include/crow_all.h.gch
include/crow_all.h.gch: include/crow_all.h
$(CC) $(CFLAGS) -lpthread -c $< -o $@