dockapps/wmcpufreq/wmcpufreq/Makefile
Rodolfo García Peñas (kix) f30211d5b0 wmcpufreq uses libdockapp
wmcpufreq 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

28 lines
655 B
Makefile

CC = gcc
CFLAGS = -O2 -Wall
INCDIR = -I/usr/X11R6/include
DESTDIR= /usr/local/
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lX11 -lXext -lcpufreq -ldockapp
OBJS = wmcpufreq.o
.c.o:
$(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
all: wmcpufreq.o wmcpufreq
wmcpufreq.o: wmcpufreq_master_1.xpm wmcpufreq_mask_1.xbm wmcpufreq_master_2.xpm wmcpufreq_mask_2.xbm wmcpufreq_master_3.xpm wmcpufreq_mask_3.xbm
wmcpufreq: $(OBJS)
$(CC) $(SYSTEM) -o wmcpufreq $^ $(INCDIR) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
rm -f $$i; \
done
rm -f wmcpufreq
install:: wmcpufreq
install -s -m 0755 wmcpufreq $(DESTDIR)/bin
chmod +x $(DESTDIR)/bin/wmcpufreq