igiwm

ref: master

./Makefile


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# We want to display all warnings
CFLAGS+= -Wall

# We need to link against the X11 Library.
LDADD+= -lX11

# Name of our source code and binary output
EXEC=igiwm

# Compiler to use (we could use musl c if we wanted to)
CC=gcc

all: $(EXEC)

# We will pass along with our flags an additional flag -Os which will try to
# optimize the code for size, so trying to generate a smaller footprint binary
igiwm: igiwm.o
	$(CC) $(LDFLAGS) -Os -o $@ $+ $(LDADD)

clean:
	rm -f igiwm *.o