blob: 2acda94a769ce8e2dddbac5e83b598978542e102 [file] [log] [blame]
Josh Coalsonba2c1b82002-06-01 06:29:30 +00001!include <win32.mak>
2
3!IFDEF DEBUG
4.c.obj:
Josh Coalson5f39e9f2002-08-21 05:27:01 +00005 $(cc) /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $<
Josh Coalsonba2c1b82002-06-01 06:29:30 +00006!else
7.c.obj:
Josh Coalson5f39e9f2002-08-21 05:27:01 +00008 $(cc) /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX -DNODEBUG $<
Josh Coalsonba2c1b82002-06-01 06:29:30 +00009!endif
10
11C_FILES= \
12 getopt.c \
13 getopt1.c
14
Josh Coalson5f39e9f2002-08-21 05:27:01 +000015UTF8_C_FILES= \
16 charset.c \
17 iconvert.c \
18 utf8.c
19
Josh Coalsonba2c1b82002-06-01 06:29:30 +000020OBJS= $(C_FILES:.c=.obj)
21
Josh Coalson5f39e9f2002-08-21 05:27:01 +000022UTF8_OBJS= $(UTF8_C_FILES:.c=.obj)
Josh Coalson0aaf4962002-08-14 00:52:00 +000023
24all: getopt.lib utf8.lib
Josh Coalsonba2c1b82002-06-01 06:29:30 +000025
26getopt.lib: $(OBJS)
27 link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(OBJS)
28
Josh Coalson0aaf4962002-08-14 00:52:00 +000029utf8.lib: $(UTF8_OBJS)
30 link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(UTF8_OBJS)
31
Josh Coalsonba2c1b82002-06-01 06:29:30 +000032clean:
33 -del *.obj *.pch
34 -del ..\..\obj\lib\getopt.lib ..\..\obj\lib\getopt.pdb
Josh Coalson0aaf4962002-08-14 00:52:00 +000035 -del ..\..\obj\lib\utf8.lib ..\..\obj\lib\utf8.pdb