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