/[svn]/liblscp/trunk/win32/Makefile.bcc32
ViewVC logotype

Contents of /liblscp/trunk/win32/Makefile.bcc32

Parent Directory Parent Directory | Revision Log Revision Log


Revision 146 - (show annotations) (download)
Fri Jun 25 12:00:25 2004 UTC (19 years, 10 months ago) by capela
File size: 1597 byte(s)
* Major changes to server event protocol interface
  on attempt to comply with draft-protocol v.11.

1 # Makefile.bcc32 - liblscp.lib
2 # For Borland C++ 5.0 and later.
3 #
4 # Usage: make -f Makefile.bcc32
5 #
6 .AUTODEPEND
7
8 CC = bcc32
9 LD = ilink32
10 AR = tlib /C
11 RM = del
12
13 LIBNAME = liblscp
14
15 INCDIR = ..\lscp
16 SRCDIR = ..\src
17
18 CCFLAGS = -tWR -w -w-hid -tWM -tWC -x- -RT- -I..
19 !ifdef DEBUG
20 CCFLAGS = -v -y -DDEBUG $(CCFLAGS)
21 !else
22 CCFLAGS = -O2 -Z $(CCFLAGS)
23 !endif
24
25 all: $(LIBNAME).lib examples
26
27 #
28 # Static library build rules.
29 #
30
31 $(LIBNAME).lib: thread.obj socket.obj client.obj device.obj common.obj event.obj
32 - $(RM) $(LIBNAME).lib
33 $(AR) $(LIBNAME).lib +thread.obj +socket.obj +client.obj +device.obj +common.obj +event.obj
34
35 thread.obj: $(SRCDIR)\thread.c $(INCDIR)\thread.h
36 socket.obj: $(SRCDIR)\socket.c $(INCDIR)\socket.h
37 client.obj: $(SRCDIR)\client.c $(INCDIR)\client.h
38 device.obj: $(SRCDIR)\device.c $(INCDIR)\device.h
39 common.obj: $(SRCDIR)\common.c $(SRCDIR)\common.h
40 event.obj: $(SRCDIR)\event.c $(INCDIR)\event.h
41
42
43 #
44 # Examples build rules.
45 #
46
47 EXDIR = ..\examples
48
49 examples: example_client.exe example_server.exe
50
51 LDFLAGS = -L.
52 LDLIBS = $(LIBNAME).lib
53
54 example_client.exe: $(EXDIR)\example_client.c $(LIBNAME).lib
55 $(CC) $(CCFLAGS) -I$(EXDIR) $(EXDIR)\example_client.c $(LDFLAGS) $(LDLIBS)
56
57 example_server.exe: $(EXDIR)\example_server.c server.obj parser.obj $(LIBNAME).lib
58 $(CC) $(CCFLAGS) -I$(EXDIR) $(EXDIR)\example_server.c server.obj parser.obj $(LDFLAGS) $(LDLIBS)
59
60 server.obj: $(EXDIR)\server.c $(EXDIR)\server.h
61 parser.obj: $(EXDIR)\parser.c $(EXDIR)\parser.h
62
63 #
64 # Common rules.
65 #
66
67 .c.obj:
68 $(CC) $(CCFLAGS) -c {$< }
69
70 clean:
71 - $(RM) *.obj
72 - $(RM) *.lib
73 - $(RM) *.exe
74 - $(RM) *.td?
75

  ViewVC Help
Powered by ViewVC