annotate src/win32/IdleTracker/Makefile.mingw @ 4532:6488535322a1

[gaim-migrate @ 4811] Switching to lowercase filenames. Fix for buggy idle detection committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Wed, 05 Feb 2003 22:59:39 +0000
parents 98ede8f38be6
children 464ec3e2ce43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4532
6488535322a1 [gaim-migrate @ 4811]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3904
diff changeset
18 TARGET = idletracker
3904
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
4532
6488535322a1 [gaim-migrate @ 4811]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3904
diff changeset
36 INCLUDE_PATHS +=
3904
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
37
4532
6488535322a1 [gaim-migrate @ 4811]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3904
diff changeset
38 LIB_PATHS =
3904
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 ## SOURCES, OBJECTS
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
42 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
43
4532
6488535322a1 [gaim-migrate @ 4811]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3904
diff changeset
44 C_SRC = idletracker.c
3904
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 OBJECTS = $(C_SRC:%.c=%.o)
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 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
50 ## LIBRARIES
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
51 ##
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 LIBS =
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 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
56 ## RULES
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
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
59 # How to make a C file
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 %.o: %.c
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
62 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
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 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
65 ## TARGET DEFINITIONS
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
66 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
67
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
68 .PHONY: all clean
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 all: $(TARGET).dll
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 install:
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
73
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 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
76 ## BUILD DLL
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
77 ##
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 $(TARGET).def: $(OBJECTS)
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80 dlltool --dllname $(TARGET).dll -z $(TARGET).def $(OBJECTS)
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82 $(TARGET).base: $(OBJECTS)
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS)
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84 rm -rf junk.tmp
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
85
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
86 $(TARGET).exp: $(TARGET).def $(TARGET).base
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
87 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
88 --output-exp $(TARGET).exp --def $(TARGET).def
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
89 rm -rf $(TARGET).base
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).dll: $(OBJECTS) $(TARGET).exp
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS)
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
93 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
94 rm -rf $(TARGET).exp
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 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
97 ## CLEAN RULES
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
98 ##
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
99
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
100 clean:
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
101 rm -rf *.o
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
102 rm -rf $(TARGET).dll
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
103 rm -rf $(TARGET).lib
98ede8f38be6 [gaim-migrate @ 4057]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
104 rm -rf $(TARGET).def