Add wmxres 1.2 to the repository
[dockapps.git] / wmxres / Makefile
blob519acc2321bb8d3ac6d13f2f96f2cc47094571ab
1 # Edited for Debian GNU/Linux
2 DESTDIR =
4 CC = gcc
5 CFLAGS = -O2 -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
6 FINAL_CFLAGS = -O2 -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,norelro
7 DEBUG_CFLAGS = -g -Wall
8 INCDIR = -I/usr/X11R6/include
9 LIBDIR = -L/usr/X11R6/lib
10 LIBS = -lXpm -lXext -lX11 -lXxf86vm
11 OBJS = wmxres/wmxres.o \
12 wmgeneral/wmgeneral.o \
14 # ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15 # CFLAGS += -g
16 # endif
18 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19 INSTALL_FLAGS += -s
20 endif
22 .c.o:
23 cc -c $(CFLAGS) -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR)
25 all: wmxres/wmxres
27 wmxres/wmxres: $(OBJS)
28 gcc $(CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS)
30 debug: $(OBJS)
31 gcc $(DEBUG_CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS)
32 install:: all
33 install $(INSTALL_FLAGS) -m 4755 -o root wmxres/wmxres \
34 $(DESTDIR)/usr/bin
36 .PHONY :clean
37 clean:
38 for i in $(OBJS) ; do \
39 rm -f $$i; \
40 done
41 rm -f wmxres/wmxres