File: Makefile

package info (click to toggle)
xwit 3.4-16
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 556 kB
  • sloc: ansic: 9,354; makefile: 73
file content (23 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
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

all: xwit

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

%.o: %.c
	gcc $(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/