-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Set the compiler and arguments
CC = gcc
CFLAGS = -g -std=gnu90 -Wall -pedantic
# Compile all of these if make is done without arguments
all: bin/brightness bin/auto_background bin/dmenu2
# Create bin/brightness if the arg is brightness
brightness: bin/brightness
$(info brightness done)
auto_background: bin/auto_background
$(info auto_background done)
bin/brightness: brightness.c
mkdir -p bin
$(CC) -o bin/brightness $(CFLAGS) brightness.c
bin/auto_background: auto_background.c
mkdir -p bin
$(CC) -o bin/auto_background $(CFLAGS) auto_background.c
bin/dmenu2: dmenu2.c app-parser.o
mkdir -p bin
$(CC) dmenu2.c -o bin/dmenu2 $(CFLAGS) -I/usr/include/cairo/ -lX11 \
-lcairo app-parser.o
app-parser.o: app-parser.c
$(CC) app-parser.c -o app-parser.o -c $(CFLAGS)
clean:
rm -f bin/*