1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-18 23:11:19 +03:00
Files
KernelEx/auxiliary/psapi/makefile.msv
2018-11-03 16:24:01 +03:00

33 lines
780 B
Plaintext
Executable File

# Makefile for Microsoft Visual C++ Compiler (MSVC)
OBJ = psapi.obj
RES =
DEF = /DEF:psapi.def
BIN = ..\psapi.dll
LIBS = -nodefaultlib kernel32.lib
LDFLAGS = /DLL /OPT:NOWIN98 /ENTRY:DllMain@12 /LIBPATH:../../common KernelEx.lib
CFLAGS = /W3 /O2 /Oi /FD /I../../common
CXXFLAGS = $(CFLAGS)
all : $(BIN)
-@if exist $(BIN:.dll=.exp) del $(BIN:.dll=.exp)
-@if exist $(BIN:.dll=.lib) del $(BIN:.dll=.lib)
.PHONY : clean
clean :
-@if exist *.obj del *.obj
-@if exist *.idb del *.idb
-@if exist *.res del *.res
realclean : clean
-@if exist $(BIN) del $(BIN)
$(BIN) : $(OBJ) $(RES)
link /nologo $(LDFLAGS) $(DEF) /OUT:$(BIN) $(LIBS) $(OBJ) $(RES)
.c.obj :
cl /nologo $(CFLAGS) /c /Fo$@ $<
.cpp.obj :
cl /nologo $(CXXFLAGS) /c /Fo$@ $<