source: branches/client-1.5/src/makefile@ 144

Last change on this file since 144 was 23, checked in by Yuri Dario, 18 years ago

High memory is still not safe, something failing with highmem buffers, disable.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1#
2# gcc 3.3.5 is required!
3#
4
5VERSION = 1.0.15
6BUILD = 15
7
8SAMBA = ..
9TOOLKIT = E:\dev\toolkit452
10
11INCLUDES = -I.\h -I.\rc \
12 -I$(SAMBA) -I$(SAMBA)/include -I$(SAMBA)/lib/replace \
13 -I$(SAMBA)/popt \
14 -I$(SAMBA)/lib/talloc \
15 -I$(SAMBA)/librpc \
16 -I$(SAMBA)/tdb/include
17
18CFLAGS = -g -Zomf -O3 -march=pentium -mcpu=pentium4
19LDFLAGS = -s -Zomf -Zno-fork -Zsym -Zmap -Zbin-files
20
21CC = gcc
22LIBS = $(SAMBA)/bin/libsmbclient.a -lsocket -lsyslog
23
24NDPSMB_OBJS = ndpsmb.o
25SMBCD_OBJS = smbcd.o smbwrp.o
26
27
28all: ndpsmb.dll ndpsmb.hlp smbcd.exe
29
30.c.o:
31 $(CC) -c $(CFLAGS) $(INCLUDES) $*.c
32
33ndpsmb.dll: $(NDPSMB_OBJS) ndpsmb.def rc\rc.res makefile
34 $(CC) -Zdll $(LDFLAGS) -o $@ $(NDPSMB_OBJS) rc\rc.res ndpsmb.def
35
36smbcd.exe: $(SMBCD_OBJS) rc\rc.res makefile
37 $(CC) -Zexe $(LDFLAGS) -o $@ $(LIBS) $(SMBCD_OBJS) rc\rc.res
38
39rc\description.rc: makefile
40 call BldLevelInf -V$(VERSION) -N"Netlabs.org" -D"NDPSMB - SMBFS NetDrive External Plugin" -Len rc\description.rc
41
42rc\rc.res: .\rc\rc.rc .\rc\rc.dlg .\rc\rc.h .\H\ndpl_rc.h rc\description.rc
43 wrc -r -i.\h;.\rc;$(TOOLKIT)\h .\rc\rc.rc
44
45ndpsmb.hlp: .\rc\rc.ipf .\rc\rc.h .\H\hmacros.h makefile
46 -$(CC) -E $(INCLUDES) -x c .\rc\rc.ipf > rc.i
47 $(TOOLKIT)\bin\ipfc rc.i ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
48 del rc.i
49
50#ndpsmb.o: makefile .\H\ndextpl2.h .\H\ndfs.h smbcd.h smbwrp.h .\H\mydebug.h
51
52
53clean:
54 rm *.obj
55 rm *.map
56 rm *.dll
57 rm *.hlp
Note: See TracBrowser for help on using the repository browser.