2006-04-04 16:03:14 +00:00
|
|
|
SRCS = awk.c err.c tree.c tab.c map.c parse.c run.c sa.c val.c misc.c
|
2005-09-30 09:40:15 +00:00
|
|
|
OBJS = $(SRCS:.c=.obj)
|
2006-03-31 16:56:01 +00:00
|
|
|
OUT = xpawk
|
2005-09-30 09:40:15 +00:00
|
|
|
|
|
|
|
CC = cl
|
2006-01-18 15:16:01 +00:00
|
|
|
#CFLAGS = /nologo /MT /W3 /GR- /D_WIN32_WINNT=0x0400 -I../..
|
2006-04-03 09:28:04 +00:00
|
|
|
CFLAGS = /nologo /O2 /MT /W3 /GR- /D_WIN32_WINNT=0x0400 -I../.. -D__STAND_ALONE -DXP_CHAR_IS_WCHAR
|
2005-09-30 09:40:15 +00:00
|
|
|
|
2006-03-31 16:56:01 +00:00
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(OBJS)
|
|
|
|
link /lib @<<
|
|
|
|
/nologo /out:$(OUT).lib $(OBJS)
|
2005-09-30 09:40:15 +00:00
|
|
|
<<
|
|
|
|
|
2006-03-31 16:56:01 +00:00
|
|
|
dll: $(OBJS)
|
2006-03-31 17:48:17 +00:00
|
|
|
link /dll /def:awk.def /subsystem:console /version:0.1 /release @<<
|
2006-03-31 16:56:01 +00:00
|
|
|
/nologo /out:$(OUT).dll $(OBJS)
|
|
|
|
<<
|
2005-09-30 09:40:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
del $(OBJS) $(OUT) *.obj
|
|
|
|
|
|
|
|
.SUFFIXES: .c .obj
|
|
|
|
.c.obj:
|
|
|
|
$(CC) $(CFLAGS) /c $<
|
|
|
|
|