Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.442 kb
4d1050a @harp1n autohide, windowdec, makefile, mousecursor, options
authored
1 CC = gcc
2 LIBS = -lX11 -lXext -lXfixes
3 SOURCES=windump.c
4 OBJS=$(SOURCES:.c=.o)
5 EXECUTABLE=windump
6 OPTIMIZE=2
7 #DEBUG=-ggdb3
8 DEBUG=
9 CFLAGS=-O$(OPTIMIZE) $(DEBUG) -std=gnu99 -pedantic -Wall -Wextra
10 LDFLAGS=$(DEBUG) -Wl,-O$(OPTIMIZE) -Wall -Wextra -Werror
11
12 all: $(SOURCES) $(EXECUTABLE)
13
14 $(EXECUTABLE): $(OBJS)
15 $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
16
17 .c.o:
18 $(CC) $(CFLAGS) -c $< -o $@
19
20 .PHONY: clean all
21
22 clean:
23 \rm -f $(OBJS) $(EXECUTABLE) *~ core
Something went wrong with that request. Please try again.