mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
Use build helpers from /reactos/tools/
svn path=/trunk/; revision=12807
This commit is contained in:
parent
4dba0925ac
commit
f765c59019
3 changed files with 28 additions and 59 deletions
|
@ -5,22 +5,13 @@
|
||||||
|
|
||||||
PATH_TO_TOP := ../../../reactos
|
PATH_TO_TOP := ../../../reactos
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
TARGET_TYPE = program
|
||||||
|
|
||||||
TARGET_NAME=regexpl
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
all: $(TARGET_NAME).exe
|
TARGET_NAME = regexpl
|
||||||
|
|
||||||
ROS_DIR=../../../reactos
|
TARGET_OBJECTS = \
|
||||||
ROS_INC=$(ROS_DIR)/include
|
|
||||||
ROS_LIB=$(ROS_DIR)/dk/w32/lib
|
|
||||||
IMPORT_NTDLL=$(ROS_LIB)/libntdll.a
|
|
||||||
IMPORT_FMIFS=$(ROS_LIB)/libfmifs.a
|
|
||||||
IMPORT_KERNEL32=$(ROS_LIB)/libkernel32.a
|
|
||||||
IMPORT_ADVAPI32=$(ROS_LIB)/libadvapi32.a
|
|
||||||
IMPORT_USER32=$(ROS_LIB)/libuser32.a
|
|
||||||
|
|
||||||
OBJECTS = \
|
|
||||||
ArgumentParser.o \
|
ArgumentParser.o \
|
||||||
Console.o \
|
Console.o \
|
||||||
RegistryExplorer.o \
|
RegistryExplorer.o \
|
||||||
|
@ -43,48 +34,25 @@ OBJECTS = \
|
||||||
ShellCommandValue.o \
|
ShellCommandValue.o \
|
||||||
ShellCommandVersion.o \
|
ShellCommandVersion.o \
|
||||||
ShellCommandsLinkedList.o \
|
ShellCommandsLinkedList.o \
|
||||||
CrtSupplement.c \
|
CrtSupplement.o \
|
||||||
TextHistory.o \
|
TextHistory.o \
|
||||||
Completion.o \
|
Completion.o \
|
||||||
Pattern.o \
|
Pattern.o \
|
||||||
Settings.o \
|
Settings.o \
|
||||||
Prompt.o
|
Prompt.o
|
||||||
|
|
||||||
CLEAN_FILES = \
|
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -DUNICODE -D_UNICODE -I./
|
||||||
*.o \
|
|
||||||
$(TARGET_NAME).exe \
|
|
||||||
$(TARGET_NAME).sym
|
|
||||||
|
|
||||||
$(TARGET_NAME).exe: $(OBJECTS)
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
$(CXX) -Wl,--subsystem,console -o $(TARGET_NAME).exe $(OBJECTS)$(IMPORT_KERNEL32) $(IMPORT_USER32)
|
|
||||||
$(NM) --numeric-sort $(TARGET_NAME).exe > $(TARGET_NAME).sym
|
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
# C++ code should be linked with c++ aware linker (g++)
|
||||||
- $(RM) $*
|
LD_CC = $(CXX)
|
||||||
|
|
||||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
# Automatic dependency tracking
|
||||||
|
DEP_OBJECTS := $(TARGET_OBJECTS)
|
||||||
|
|
||||||
floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
|
|
||||||
|
|
||||||
$(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
|
||||||
ifeq ($(DOSCLI),yes)
|
|
||||||
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
|
||||||
else
|
|
||||||
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
|
|
||||||
|
|
||||||
$(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
|
|
||||||
ifeq ($(DOSCLI),yes)
|
|
||||||
$(CP) $* ..\$(DIST_DIR)\apps\$*
|
|
||||||
else
|
|
||||||
$(CP) $* ../$(DIST_DIR)/apps\$*
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
include $(PATH_TO_TOP)/tools/depend.mk
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -24,13 +24,9 @@
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <windows.h>
|
#include "ph.h"
|
||||||
#include <assert.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include "SecurityDescriptor.h"
|
#include "SecurityDescriptor.h"
|
||||||
|
|
||||||
#define ASSERT assert
|
|
||||||
|
|
||||||
// *** THIS SHOULD GO IN A MINGW/ROS HEADER - Begin
|
// *** THIS SHOULD GO IN A MINGW/ROS HEADER - Begin
|
||||||
#if 1
|
#if 1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: ph.h,v 1.5 2004/10/11 01:24:22 sedwards Exp $ */
|
/* $Id$ */
|
||||||
|
|
||||||
// ph.h : include file for standard system include files,
|
// ph.h : include file for standard system include files,
|
||||||
// or project specific include files that are used frequently, but
|
// or project specific include files that are used frequently, but
|
||||||
|
@ -18,24 +18,29 @@
|
||||||
#define _DEBUG
|
#define _DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <tchar.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include <windef.h>
|
||||||
|
#include <wincon.h>
|
||||||
|
#include <winbase.h>
|
||||||
|
#include <wingdi.h>
|
||||||
|
#include <winuser.h>
|
||||||
|
#include <winreg.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <wchar.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#define ASSERT assert
|
#define ASSERT assert
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define VERIFY ASSERT
|
#define VERIFY ASSERT
|
||||||
#else
|
#else
|
||||||
#define VERIFY(e) (e)
|
#define VERIFY(e) (e)
|
||||||
#endif
|
#endif
|
||||||
#include <windows.h>
|
|
||||||
#include <wincon.h>
|
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <tchar.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
// INHERITED_ACE is from windows 2000
|
// INHERITED_ACE is from windows 2000
|
||||||
#ifndef INHERITED_ACE
|
#ifndef INHERITED_ACE
|
||||||
|
|
Loading…
Reference in a new issue