view Makefile @ 1:a17d9d25e9ea

add readme and license
author Yasuri <yasuri@charliesmp.net>
date Sun, 13 Sep 2026 19:25:50 +0000
parents 21b543c7aa14
children ae3a6d7bcca6
line wrap: on
line source

CXX := g++
CXXFLAGS := -std=c++17 -Wall -Wextra
TARGET := xt
SRCS := main.cpp spawn.cpp pipes.cpp
OBJS := $(SRCS:.cpp=.o)

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CXX) $(CXXFLAGS) $(OBJS) -o $(TARGET)

%.o: %.cpp process.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

clean:
	rm -f $(OBJS) $(TARGET)