CC = cl.exe CFLAGS = -DPRCTL_WIN -Od -Fdsctl.pdb -DX86_64 # cleave.c # map.c PRCTLC=\ port\srv.c\ port\ctl.c\ port\buf.c\ port\msg.c\ port\util.c\ port\hash.c\ port\err.c\ win\ctl.c\ win\srv.c\ win\ps.c\ win\stat.c\ win\util.c\ win\main.c\ win\x86-64.c\ win\util.c PRCTLO = $(PRCTLC:.c=.obj) C = $(PRCTLC) O = $(C:.c=.obj) TARG=sctl.exe all: $(TARG) $(TARG): $(PRCTLO) $(CC) $(CFLAGS) -Fe$@ $** /link Psapi.lib .c.obj: $(CC) $(CFLAGS) -c $< -Fo$(<:.c=.obj) .s.obj: $(CC) $(CFLAGS) -c $< -Fo$(<:.s=.obj) clean: del $(O)