# Makefile for awk on Windows using Visual C++.
# Copyright Daniel K. Allen, 2026.
# All rights reserved.
#
# 24 May 2026 - Created by Dan Allen for Windows.
#
# https://github.com/onetrueawk/awk branch=bsd-features
#

CFLAGS = -Os -nologo
OBJ = awkgram.tab.obj b.obj main.obj missing95.obj \
      parse.obj proctab.obj tran.obj lib.obj run.obj lex.obj

awk:	$(OBJ) makefile
 	@fi -n awk.exe
	@dumpbin /dependents awk.exe /nologo | awk NF

$(OBJ):	awk.h awkgram.tab.h proto.h

clean:
	rm -f a.out *.o *.obj
