Changeset 578 for contrib/API/lib/Makefile
- Timestamp:
- Feb 26, 2014, 7:41:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/API/lib/Makefile
r541 r578 2 2 # OpenWatcom 3 3 # 4 # Copyright (C) 2010 David Azarewicz <david@88watts.net> 4 5 # 07-Sep-2010 David Azarewicz Makefile changed to use Watcom tools 5 6 6 WATCOM=E:\Watcom 7 !ifndef %WATCOM 8 !error WATCOM must be defined in the environment. 9 !endif 10 11 WATCOM=$(%WATCOM) 12 %PATH=$(WATCOM)\BINP;$(WATCOM)\BINW;$(%PATH) 13 %INCLUDE=.;..\include;$(WATCOM)\H;$(WATCOM)\H\OS2; 7 14 8 15 .ERASE … … 44 51 OBJ=unilib.obj unictl.obj unipcm.obj uniaud.obj pcmmulti.obj cputest.obj fast_memcpy.obj fastmemcpy.obj resample.obj resample2.obj 45 52 46 .before:47 @set WATCOM=$(WATCOM)48 @set PATH=$(WATCOM)\BINP;$(WATCOM)\BINW;$(%PATH)49 @set EDPATH=$(WATCOM)\EDDAT50 @set INCLUDE=.;$(WATCOM)\H;$(WATCOM)\H\OS2;51 52 53 .c.obj: .AUTODEPEND 53 54 $(CC) $(CFLAGS) $*.c 54 55 55 56 .asm.obj: .AUTODEPEND 56 57 $(ASM) $(AFLAGS) $*.asm 57 58 58 59 … … 60 61 61 62 uniaud.dll: $(OBJ) uniaud.def 62 63 64 65 66 67 68 69 70 71 63 @%create $^*.lrf 64 @%append $^*.lrf system os2v2_dll initinstance terminstance 65 @%append $^*.lrf option quiet 66 @%append $^*.lrf option manyautodata 67 @%append $^*.lrf option map 68 @%append $^*.lrf name $^. 69 @for %i in ($(OBJ)) do @%append $^*.lrf file %i 70 @%append $^*.lrf export=uniaud.def 71 $(LINK) @$^*.lrf 72 @%erase $^*.lrf 72 73 73 74 uniaud_static.lib: $(OBJ) 74 75 76 77 75 @%create $^*.lbc 76 @for %i in ($(OBJ)) do @%append $^*.lbc +%i 77 wlib -n -b -q $^@ @$^*.lbc 78 @%erase $^*.lbc 78 79 79 80 uniaud.lib: uniaud.dll 80 81 wlib -n -b -q -iro -p=16 uniaud.lib +uniaud.dll 81 82 82 83 clean: .SYMBOLIC 83 84 @rm *.obj *.lib *.exe *.dll *.map *.lst 84 85 85 86 xfast_memcpy.obj: fast_memcpy.c 86 87 $(CC) $(CFLAGS) -DFASTMEMCPY_TEST $*.c 87 88 88 89 fast_memcpy.exe: fast_memcpy.obj fastmemcpy.obj cputest.obj 89 90 91 92 93 94 95 96 97 90 @%create $^*.lrf 91 @%append $^*.lrf system os2v2 92 @%append $^*.lrf option quiet 93 @%append $^*.lrf name $^. 94 @%append $^*.lrf file fast_memcpy.obj 95 @%append $^*.lrf file fastmemcpy.obj 96 @%append $^*.lrf file cputest.obj 97 $(LINK) @$^*.lrf 98 @%erase $^*.lrf 98 99 99 100
Note:
See TracChangeset
for help on using the changeset viewer.