4 CXXFLAGS
= -Wall
-Wextra
-I
/usr
/local
/include/vmime
/
5 CXXFLAGS
+= -ffunction-sections
-fdata-sections
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
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
42 MD5_OBJS
= ..
/md5
/md5.o
43 MD5_UTILS_OBJS
= ..
/md5
/md5_utils.o
46 ..
/applets
/osd
/osd.o \
47 ..
/applets
/widgets
/png.o \
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
65 $(CC
) $(CFLAGS
) -c
$< -o
$@
67 .PHONY
: $(TARGETS
) clean all
73 test_header_osd
: test_header_osd.o
$(COMMON_OBJS
) $(MD5_OBJS
) $(MD5_UTILS_OBJS
) $(OSD_OBJS
)
75 $(CC
) $(LDFLAGS
) $^
$(LIBRARIES
) -o
$@
77 test_list
: test_list.o list.o
$(COMMON_OBJS
) $(MD5_OBJS
) $(MD5_UTILS_OBJS
)
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
)
83 $(CC
) $(LDFLAGS
) $^
$(LIBRARIES
) -o
$@
85 test_pop3_list
: test_pop3_list.o list.o
$(COMMON_OBJS
) $(MD5_UTILS_OBJS
)
87 $(CC
) $(LDFLAGS
) $^
$(LIBRARIES
) -o
$@
89 test_view_mail
: test_view_mail.o
$(COMMON_OBJS
) $(MD5_OBJS
) $(MD5_UTILS_OBJS
)
91 $(CC
) $(LDFLAGS
) $^
$(LIBRARIES
) -o
$@
93 test_vmime
: test_vmime.
cpp
95 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) $^
$(LIBRARIES
) -o
$@
98 rm -f
$(TARGETS
) *.o
*~