CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/metsvc/src/Makefile
Views: 11777
# vim: set noexpandtab:

CC := cl

CFLAGS  := /nologo
LDFLAGS := /nologo

PROGRAMS := metsvc.exe metsvc-server.exe
SCRIPTS := install.bat

SOURCES := $(patsubst %.exe,%.cpp,$(PROGRAMS))
OBJECTS := $(patsubst %.exe,%.obj,$(PROGRAMS))

GENERATED := vc??.pdb

build: $(PROGRAMS)

metsvc.exe: metsvc.cpp metsvc.h
	$(CC) $(CFLAGS) $< /link $(LDFLAGS) /OUT:$@ ws2_32.lib advapi32.lib
	
metsvc-server.exe: metsvc-server.cpp metsvc.h
	$(CC) $(CFLAGS) $< /link $(LDFLAGS) /OUT:$@ ws2_32.lib

clean:
	rm -f $(PROGRAMS) $(OBJECTS) $(GENERATED)

.PHONY: build install clean