home *** CD-ROM | disk | FTP | other *** search
- DLLNAME = filedll
- DLL = dll
-
- CFLAGS = -zW -ml -zu -w4 -d1 -oaxt
- DLLLNK = $(DLLNAME).lnk
-
- OBJS = filedll.obj libentry.obj
- #OBJS = filedll.obj
-
- $(DLLNAME).dll : $(OBJS) $(DLLLNK) $(DLLNAME).res
- wlink @$(DLLLNK)
- rc $(DLLNAME).res
- @copy /b $(DLLNAME).exe+$(DLLNAME).sym
- @del $(DLLNAME).dll
- @rename $(DLLNAME).exe $(DLLNAME).dll
- @del $(DLLNAME).sym
-
- $(DLLNAME).res : $(DLLNAME).rc $(DLLNAME).dlg
- rc -r $(DLLNAME).rc
-
-
- $(DLLLNK) : makefile
- %create $(DLLLNK)
- # @%append $(DLLLNK) debug all
- @%append $(DLLLNK) sys windows dll
- @%append $(DLLLNK) lib clibl
- @%append $(DLLLNK) lib windows
- @%append $(DLLLNK) name $(DLLNAME).exe
- @%append $(DLLLNK) option symfile = $(DLLNAME).sym
- @%append $(DLLLNK) option heapsize=5k
- @%append $(DLLLNK) option map
- @%append $(DLLLNK) option oneautodata
- @for %i in ($(OBJS)) do @%append $(DLLLNK) file %i
-
- .c.obj :
- wccp $(CFLAGS) $[*
-
- .asm.obj :
- masm $[*.asm;
-