Add disk_applet executable to the ignore list
[rmail.git] / src / utils / Makefile
blob378c22b41539125f85db8eaa47a81ff89ad6e089
1 CC = gcc
2 CXX = g++
4 CXXFLAGS = -Wall -Wextra -I/usr/local/include/vmime/
5 CXXFLAGS += -ffunction-sections -fdata-sections
6 CXXFLAGS += -O2
8 #--
9 LIB_RWIDGETS = ../applets/widgets/librwidgets.a
10 LIB_RPOP3 = ../network/librpop3.a
12 CFLAGS = -Wall -Wextra -Wstrict-prototypes -pedantic
13 CFLAGS += -ffunction-sections -fdata-sections
14 #CFLAGS += -g -ggdb
15 CFLAGS += -O2
16 CFLAGS += -I. -I../md5 -I../network -I../applets/osd -I../applets/widgets
17 CFLAGS += -I/usr/X11R6/include -I/usr/include
18 #CFLAGS += -DPIXMAP_PATH=\"$(PIXMAP_PATH)\" -DPIXMAP_DEFAULT=\"$(PIXMAP_PATH)mail.png\"
20 LDFLAGS = -Wl,--gc-sections
21 LDFLAGS += -Wl,--as-needed
23 LIBRARIES =
25 TARGETS = \
26 test_vmime \
27 test_list \
28 test_list_x11 \
29 test_header_osd \
30 test_view_mail \
31 test_pop3_list \
33 COMMON_OBJS = \
34 string_utils.o \
35 file_utils.o \
36 rfc5322.o \
37 rfc2047.o \
38 rfc822.o \
39 mail.o \
40 mime.o
42 MD5_OBJS = ../md5/md5.o
43 MD5_UTILS_OBJS = ../md5/md5_utils.o
45 OSD_OBJS = \
46 ../applets/osd/osd.o \
47 ../applets/widgets/png.o \
48 icons_utils.o
50 WIDGETS_OBJS = \
51 ../applets/widgets/png.o
54 #-- target specific flags
55 test_list_x11: LIBRARIES += $(LIB_RWIDGETS) -L/usr/X11R6/lib -lXaw -lXt -lX11 -lpng
56 test_header_osd: LIBRARIES += -lXft -lpng
57 test_pop3_list: LIBRARIES += $(LIB_RPOP3) -L/usr/local/lib -lpolarssl
59 test_vmime: LIBRARIES += $(LIB_RPOP3) -L/usr/local/lib -lpolarssl
60 test_vmime: LIBRARIES += -L/usr/local/lib -lvmime
62 #--
63 %.o:%.c
64 @echo " CC $<"
65 $(CC) $(CFLAGS) -c $< -o $@
67 .PHONY: $(TARGETS) clean all
69 .SILENT:
71 all: $(TARGETS)
73 test_header_osd: test_header_osd.o $(COMMON_OBJS) $(MD5_OBJS) $(MD5_UTILS_OBJS) $(OSD_OBJS)
74 @echo " LD $@"
75 $(CC) $(LDFLAGS) $^ $(LIBRARIES) -o $@
77 test_list: test_list.o list.o $(COMMON_OBJS) $(MD5_OBJS) $(MD5_UTILS_OBJS)
78 @echo " LD $@"
79 $(CC) $(LDFLAGS) $^ $(LIBRARIES) -o $@
81 test_list_x11: test_list_x11.o list.o icons_utils.o $(WIDGETS_OBJS) $(COMMON_OBJS) $(MD5_OBJS) $(MD5_UTILS_OBJS)
82 @echo " LD $@"
83 $(CC) $(LDFLAGS) $^ $(LIBRARIES) -o $@
85 test_pop3_list: test_pop3_list.o list.o $(COMMON_OBJS) $(MD5_UTILS_OBJS)
86 @echo " LD $@"
87 $(CC) $(LDFLAGS) $^ $(LIBRARIES) -o $@
89 test_view_mail: test_view_mail.o $(COMMON_OBJS) $(MD5_OBJS) $(MD5_UTILS_OBJS)
90 @echo " LD $@"
91 $(CC) $(LDFLAGS) $^ $(LIBRARIES) -o $@
93 test_vmime: test_vmime.cpp
94 @echo " CXX+LD $@"
95 $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBRARIES) -o $@
97 clean:
98 rm -f $(TARGETS) *.o *~