Group :: Sistema/X11
RPM: xwit
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
CFLAGS ?= -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes
LDFLAGS ?= -L/usr/lib -Wl,-z,defs
LIBRARIES = -lX11
all: xwit
xwit: xwit.o ClientWin.o dsimple.o
gcc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
%.o: %.c
gcc $(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
mkdir -p $(prefix)/bin $(prefix)/share/man/man1
install -s xwit $(prefix)/bin/
install xwit.man $(prefix)/share/man/man1/xwit.1 && gzip $(prefix)/share/man/man1/xwit.1