1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
# Part 0
# load common stuff
TOPDIR = .
include $(TOPDIR)/Makefile.common
# Part 1
# recursive make
SRC = panel.c misc.c bg.c eggtraymanager.c eggmarshalers.c fixedtip.c main.c gdk-helper.c
OBJ = $(SRC:%.c=%.o)
DEP = $(SRC:%.c=%.dep)
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
-include $(DEP)
endif
endif
TARGET = trayer
$(TARGET): $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) -o $@ $(LIBS)
ifeq (,$(DEVEL))
strip $@
endif
all: $(TARGET)
clean:
$(RM) $(TARGET) $(OBJ) $(DEP) *~
distclean:
rm -f Makefile.config config.h
install:
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|