Mercurial > pidgin.yaz
annotate src/win32/IdleTracker/Makefile.mingw @ 4041:3a36ec242415
[gaim-migrate @ 4249]
Michael Golden replaced a deprecated gtk call, and I fixed a leak in
gtkimhtmlc.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 03 Dec 2002 22:26:54 +0000 |
parents | 98ede8f38be6 |
children | 6488535322a1 |
rev | line source |
---|---|
3904
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
1 # |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
2 # Makefile.mingw |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
3 # |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
4 # Description: Makefile for idletracker |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
5 # |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
6 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
7 # |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
8 # PATHS |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
9 # |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
10 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
11 GAIM_TOP := ../../.. |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
12 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
13 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
14 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
15 ## VARIABLE DEFINITIONS |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
16 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
17 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
18 TARGET = IdleTrac |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
19 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
20 # Compiler Options |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
21 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
22 CFLAGS = |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
23 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
24 DEFINES = |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
25 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
26 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
27 ## INCLUDE MAKEFILES |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
28 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
29 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
30 include $(GAIM_TOP)/src/win32/global.mak |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
31 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
32 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
33 ## INCLUDE PATHS |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
34 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
35 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
36 INCLUDE_PATHS += -I$(GAIM_TOP)/src \ |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
37 -I$(GAIM_TOP)/src/win32 \ |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
38 -I$(GAIM_TOP) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
39 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
40 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
41 LIB_PATHS = -L$(GTK_TOP)/lib \ |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
42 -L$(GAIM_TOP)/src |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
43 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
44 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
45 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
46 ## SOURCES, OBJECTS |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
47 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
48 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
49 C_SRC = IdleTracker.c |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
50 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
51 OBJECTS = $(C_SRC:%.c=%.o) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
52 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
53 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
54 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
55 ## LIBRARIES |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
56 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
57 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
58 LIBS = |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
59 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
60 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
61 ## RULES |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
62 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
63 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
64 # How to make a C file |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
65 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
66 %.o: %.c |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
67 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
68 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
69 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
70 ## TARGET DEFINITIONS |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
71 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
72 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
73 .PHONY: all clean |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
74 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
75 all: $(TARGET).dll |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
76 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
77 install: |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
78 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
79 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
80 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
81 ## BUILD DLL |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
82 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
83 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
84 $(TARGET).def: $(OBJECTS) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
85 dlltool --dllname $(TARGET).dll -z $(TARGET).def $(OBJECTS) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
86 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
87 $(TARGET).base: $(OBJECTS) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
88 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
89 rm -rf junk.tmp |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
90 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
91 $(TARGET).exp: $(TARGET).def $(TARGET).base |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
92 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
93 --output-exp $(TARGET).exp --def $(TARGET).def |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
94 rm -rf $(TARGET).base |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
95 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
96 $(TARGET).dll: $(OBJECTS) $(TARGET).exp |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
97 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
98 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
99 rm -rf $(TARGET).exp |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
100 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
101 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
102 ## CLEAN RULES |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
103 ## |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
104 |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
105 clean: |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
106 rm -rf *.o |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
107 rm -rf $(TARGET).dll |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
108 rm -rf $(TARGET).lib |
98ede8f38be6
[gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
109 rm -rf $(TARGET).def |