mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
44 lines
713 B
Makefile
Executable File
44 lines
713 B
Makefile
Executable File
# Makefile for GNU C Compiler (GCC)
|
|
|
|
CC = gcc
|
|
CXX = g++
|
|
RCC = windres
|
|
OBJ = wtsapi32.o
|
|
RES =
|
|
LIBS =
|
|
DEF = wtsapi32.def
|
|
LDFLAGS = -s -shared -Wl,--kill-at
|
|
BIN = ..\wtsapi32.dll
|
|
CFLAGS = -Os -Wall
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
.SUFFIXES: .rc
|
|
|
|
all : $(BIN)
|
|
|
|
.PHONY : clean
|
|
clean :
|
|
-@if exist *.o del *.o
|
|
-@if exist *.po del *.po
|
|
-@if exist *.a del *.a
|
|
|
|
realclean : clean
|
|
-@if exist $(BIN) del $(BIN)
|
|
|
|
$(BIN) : $(OBJ) $(RES)
|
|
$(CXX) $(LDFLAGS) -o $(BIN) $(OBJ) $(RES) $(LIBS) $(DEF)
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c -MMD -MF $*.po -o $@ $<
|
|
|
|
.cpp.o :
|
|
$(CXX) $(CXXFLAGS) -c -MMD -MF $*.po -o $@ $<
|
|
|
|
.rc.o :
|
|
$(RCC) $< $@
|
|
|
|
.def.a :
|
|
dlltool --def $< -l $@
|
|
|
|
-include $(OBJ:.o=.po)
|