1 # Edited for Debian GNU/Linux
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)))
18 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
23 cc -c
$(CFLAGS
) -D
$(shell echo
`uname -s`) $< -o
$*.o
$(INCDIR
)
27 wmxres
/wmxres
: $(OBJS
)
28 gcc
$(CFLAGS
) -o wmxres
/wmxres
$^
$(LIBDIR
) $(LIBS
)
31 gcc
$(DEBUG_CFLAGS
) -o wmxres
/wmxres
$^
$(LIBDIR
) $(LIBS
)
33 install $(INSTALL_FLAGS
) -m
4755 -o root wmxres
/wmxres \
38 for i in
$(OBJS
) ; do \