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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations) (download)
Fri Jun 4 14:32:51 2004 UTC (19 years, 10 months ago) by capela
File size: 1528 byte(s)
Initial alpha release.

1 capela 103 # 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
32     - $(RM) $(LIBNAME).lib
33     $(AR) $(LIBNAME).lib +thread.obj +socket.obj +client.obj +device.obj +common.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    
40     common.obj: $(SRCDIR)\common.c $(SRCDIR)\common.h
41    
42     #
43     # Examples build rules.
44     #
45    
46     EXDIR = ..\examples
47    
48     examples: example_client.exe example_server.exe
49    
50     LDFLAGS = -L.
51     LDLIBS = $(LIBNAME).lib
52    
53     example_client.exe: $(EXDIR)\example_client.c $(LIBNAME).lib
54     $(CC) $(CCFLAGS) -I$(EXDIR) $(EXDIR)\example_client.c $(LDFLAGS) $(LDLIBS)
55    
56     example_server.exe: $(EXDIR)\example_server.c server.obj parser.obj $(LIBNAME).lib
57     $(CC) $(CCFLAGS) -I$(EXDIR) $(EXDIR)\example_server.c server.obj parser.obj $(LDFLAGS) $(LDLIBS)
58    
59     server.obj: $(EXDIR)\server.c $(EXDIR)\server.h
60     parser.obj: $(EXDIR)\parser.c $(EXDIR)\parser.h
61    
62     #
63     # Common rules.
64     #
65    
66     .c.obj:
67     $(CC) $(CCFLAGS) -c {$< }
68    
69     clean:
70     - $(RM) *.obj
71     - $(RM) *.lib
72     - $(RM) *.exe
73     - $(RM) *.td?
74    

  ViewVC Help
Powered by ViewVC