File: Makefile

package info (click to toggle)
xwit 3.4-16.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 620 kB
  • sloc: ansic: 10,365; makefile: 74
file content (23 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS ?= -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes
LDFLAGS ?= -Wl,-z,defs
LIBRARIES = -lX11 -lXi

all: xwit

xwit: xwit.o ClientWin.o dsimple.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBRARIES)

%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<

# Headers needed
dsimple.o: dsimple.h
xwit.o: dsimple.h ClientWin.h
ClientWin.o: ClientWin.h

clean:
	-rm xwit *.o

install: xwit
	install xwit $(DESTDIR)/usr/bin/