This repository has been archived on 2021-10-03. You can view files and clone it, but cannot push or open issues or pull requests.
swm/Makefile
2020-10-17 15:15:08 +03:00

15 lines
No EOL
286 B
Makefile

SRC_DIR=src
BIN_DIR=bin
WM_SOURCES_MAIN=$(SRC_DIR)/main.c
WM_SOURCES=$(WM_SOURCES_MAIN)
PREFIX?=/usr/X11R6
CFLAGS?=-Os -pedantic -Wall
all: $(WM_SOURCES) wm
wm: $(WM_SOURCES_MAIN)
$(CC) $(CFLAGS) -I$(PREFIX)/include $< -L$(PREFIX)/lib -lX11 -o $(BIN_DIR)/wm
clean:
rm $(BIN_DIR)/*