Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 1 | !include <win32.mak>
|
| 2 |
|
| 3 | !IFDEF DEBUG
|
| 4 | .c.obj:
|
Josh Coalson | 5f39e9f | 2002-08-21 05:27:01 +0000 | [diff] [blame] | 5 | $(cc) /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $<
|
Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 6 | !else
|
| 7 | .c.obj:
|
Josh Coalson | 5f39e9f | 2002-08-21 05:27:01 +0000 | [diff] [blame] | 8 | $(cc) /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX -DNODEBUG $<
|
Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 9 | !endif
|
| 10 |
|
| 11 | C_FILES= \
|
| 12 | getopt.c \
|
| 13 | getopt1.c
|
| 14 |
|
Josh Coalson | 5f39e9f | 2002-08-21 05:27:01 +0000 | [diff] [blame] | 15 | UTF8_C_FILES= \
|
| 16 | charset.c \
|
| 17 | iconvert.c \
|
| 18 | utf8.c
|
| 19 |
|
Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 20 | OBJS= $(C_FILES:.c=.obj)
|
| 21 |
|
Josh Coalson | 5f39e9f | 2002-08-21 05:27:01 +0000 | [diff] [blame] | 22 | UTF8_OBJS= $(UTF8_C_FILES:.c=.obj)
|
Josh Coalson | 0aaf496 | 2002-08-14 00:52:00 +0000 | [diff] [blame] | 23 |
|
| 24 | all: getopt.lib utf8.lib
|
Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 25 |
|
| 26 | getopt.lib: $(OBJS)
|
| 27 | link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(OBJS)
|
| 28 |
|
Josh Coalson | 0aaf496 | 2002-08-14 00:52:00 +0000 | [diff] [blame] | 29 | utf8.lib: $(UTF8_OBJS)
|
| 30 | link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(UTF8_OBJS)
|
| 31 |
|
Josh Coalson | ba2c1b8 | 2002-06-01 06:29:30 +0000 | [diff] [blame] | 32 | clean:
|
| 33 | -del *.obj *.pch
|
| 34 | -del ..\..\obj\lib\getopt.lib ..\..\obj\lib\getopt.pdb
|
Josh Coalson | 0aaf496 | 2002-08-14 00:52:00 +0000 | [diff] [blame] | 35 | -del ..\..\obj\lib\utf8.lib ..\..\obj\lib\utf8.pdb
|