Use default pixmap dir
[rmail.git] / src / utils / Makefile
blob98800022d936a8cbe47f4857cac1b32ce078356e
1 CC = gcc
3 CFLAGS = -Wall -Wextra -Wstrict-prototypes -pedantic
4 CFLAGS += -g -ggdb
5 CFLAGS += -I. -I../md5 -I../network -I../osd -I../applets/widgets
6 CFLAGS += -I/usr/X11R6/include -I/usr/include
7 #CFLAGS += -DPIXMAP_PATH=\"$(PIXMAP_PATH)\" -DPIXMAP_DEFAULT=\"$(PIXMAP_PATH)mail.png\"
9 LDFLAGS =
11 TARGETS = \
12 test_mime \
13 test_header \
14 test_view_mail \
15 test_list \
16 test_list_x11 \
17 test_header_osd \
19 # test_pop3_list \
21 COMMON_OBJS = \
22 string_utils.o \
23 file_utils.o \
24 rfc5322.o \
25 rfc2047.o \
26 rfc822.o
28 NETWORK_OBJS = \
29 ../network/socket.o \
30 ../network/socket_io.o \
31 ../network/pop3.o
33 MD5_UTILS_OBJS = \
34 ../md5/md5.o \
35 ../md5/md5_utils.o
37 OSD_OBJS = \
38 ../osd/img_png.o \
39 ../osd/xlib_png.o \
40 ../osd/osd.o \
41 icons_utils.o
43 WIDGETS_OBJS = \
44 ../applets/widgets/iv_widget.o \
45 ../applets/widgets/png.o
47 #--
48 %.o:%.c
49 @echo " CC $<"
50 $(CC) $(CFLAGS) -c $< -o $@
52 .PHONY: $(TARGETS) clean all
54 .SILENT:
56 all: $(TARGETS)
58 test_header_osd: $(COMMON_OBJS) $(MD5_UTILS_OBJS) $(OSD_OBJS) test_header_osd.o
59 @echo " LD $@"
60 $(CC) $^ -o $@ $(LDFLAGS) -lXft -lpng
62 test_list: list.o $(COMMON_OBJS) $(MD5_UTILS_OBJS) test_list.o
63 @echo " LD $@"
64 $(CC) $^ -o $@ $(LDFLAGS)
66 test_list_x11: list.o icons_utils.o $(WIDGETS_OBJS) $(COMMON_OBJS) $(MD5_UTILS_OBJS) test_list_x11.o
67 @echo " LD $@"
68 $(CC) $^ -o $@ -L/usr/X11R6/lib -lXaw -lXt -lX11 -lpng
70 test_pop3_list: list.o $(COMMON_OBJS) $(MD5_UTILS_OBJS) $(NETWORK_OBJS) test_pop3_list.o
71 @echo " LD $@"
72 $(CC) $^ -o $@ $(LDFLAGS)
74 test_view_mail: $(COMMON_OBJS) mime.o test_view_mail.o
75 @echo " LD $@"
76 $(CC) $^ -o $@ $(LDFLAGS)
78 test_mime: mime.o test_mime.o
79 @echo " LD $@"
80 $(CC) $^ -o $@ $(LDFLAGS)
82 clean:
83 rm -f $(TARGETS) *.o *~