Mine
public text v1 · immutable# Set correct variables and paths
CC = g++
X11PATH = /usr/X11R6
CFLAGS = -Wall -ansi -pedantic -ffast-math -I$(X11PATH)/include
BIN = filtre_for
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))
LDFLAGS=-lm -lpthread -lX11 -L$(X11PATH)/lib
# Compilation rules
all: $(OBJ)
$(OBJ)= $(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
.cpp:
@echo "** Compiling '$*' with '`$(CC) -v 2>&1 | grep version`'"
$(CC) -o $* $< $(CFLAGS)
clean:
$(RM) -f $(BIN) $(OBJ)