-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
executable file
·36 lines (24 loc) · 865 Bytes
/
Makefile
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
TYPE=APPLICATION
DEPEND=dependencies
SRC=$(wildcard toolbox-*.c)
CFLAGS+=-D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
LDFLAGS+=
OBJS = standalone.o
OBJS+= toolbox-filesystem.o
OBJS+= toolbox-flexstring.o
OBJS+= toolbox-tree.o
OBJS+= toolbox.o
TARGET=standalone
all: $(DEPEND) $(TARGET) library
$(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
library:
gcc -Wall `pkg-config --cflags gtk+-2.0 lxpanel` -shared -fPIC showip.c toolbox.c -o showip.so `pkg-config --libs lxpanel` -L../ -Wl,-rpath=/usr/lib/aarch64-linux-gnu/lxpanel/ -Wl,-rpath=/usr/lib/arm-linux-gnueabihf/lxpanel/
clean:
rm -f $(OBJS) showip.so $(TARGET) $(DEPEND)
$(DEPEND): $(SRC)
@echo 'Creating dependencies files'
@$(SHELL) -ec '$(CC) -MM $(CFLAGS) $(SRC) \
| sed '\''s@\(.*\)\.o[ :]@\1.o: Makefile@g'\'' \
>$(DEPEND)'
include $(DEPEND)