dockapps/wmsun/Makefile
Rodolfo García Peñas (kix) 0af57fbbce wmsun uses libdockapp
wmsun uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00

42 lines
855 B
Makefile

CC = gcc
CFLAGS = -O2 -Wall
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
INSTALL = install
# If you need to compile on a Linux, dont change anything. If
# compiling for Solaris, swap the LIBS below...
#
# For Linux (and other?) Machines...
#
LIBS = -lXpm -lX11 -lXext -lm -ldockapp
#
# For Sun Solaris Machines (I know it compiles on 2.6)...
#
# LIBS = -lXpm -lX11 -lXext -lsocket
OBJS = wmsun.o SunRise.o
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
all: wmsun.o wmsun
wmsun.o: wmSun_master.xpm wmSun_mask.xbm
wmsun: $(OBJS)
$(CC) $(LDFLAGS) -o wmsun $^ $(LIBS)
clean:
for i in $(OBJS) ; do \
rm -f $$i; \
done
rm -f wmsun
install:: wmsun
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) wmsun $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 644 wmsun.1 $(DESTDIR)$(MANDIR)