File: Makefile

package info (click to toggle)
fbpanel 4.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 544 kB
  • ctags: 985
  • sloc: ansic: 7,668; makefile: 204; sh: 48
file content (55 lines) | stat: -rw-r--r-- 933 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Part 0
# load common stuff
TOPDIR = ..
include $(TOPDIR)/Makefile.common


INCS += -I../
SRC = image.c menu.c separator.c taskbar.c wincmd.c \
	dclock.c launchbar.c pager.c space.c test.c \
	icons.c deskno.c

ifeq ($(PLUGIN_CPU),on)
SRC += cpu.c
endif

ifneq (1,$(STATIC_PLUGINS))
# plugins as shared libs 
override CFLAGS += -shared -fPIC
SOBJ = $(SRC:%.c=%.so)
all:$(SOBJ)
%.so: %.o
	$(call summary,LD  ,$@)
	$(Q)$(CC) $(CFLAGS) $(INCS) $< -o $@
ifeq (0,$(DEVEL))
	$(Q)strip $@
endif

else
# plugins built in

all: plugins.a
plugins.a: $(OBJ)
	$(call summary,AR  ,$@)
	$(Q)$(AR) -cq $@ $(OBJ)
endif



ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),tar)
-include $(DEP)
endif
endif
endif


ifeq (0,$(STATIC_PLUGINS))
install: 
	install -d  $(PREFIX)/share/fbpanel/plugins
	install -m 644 $(SOBJ) $(PREFIX)/share/fbpanel/plugins

uninstall:
	$(RM) -r $(PREFIX)/share/fbpanel/plugins/
endif