work on makefile
This commit is contained in:
parent
e68ef8b51c
commit
e85cc28978
2 changed files with 18 additions and 0 deletions
15
Makefile
15
Makefile
|
@ -0,0 +1,15 @@
|
||||||
|
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)/*
|
3
src/main.c
Normal file
3
src/main.c
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
Reference in a new issue