mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
Mainly standardisation of makefiles, now support make install rules and use ros headers...
svn path=/trunk/; revision=4000
This commit is contained in:
parent
f811f37004
commit
92dec86909
|
@ -46,11 +46,15 @@ implib:
|
||||||
clean: $(APPS:%=%_clean)
|
clean: $(APPS:%=%_clean)
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
install: $(APPS:%=%_install)
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
floppy: make_floppy_dirs $(APPS:%=%_floppy)
|
floppy: make_floppy_dirs $(APPS:%=%_floppy)
|
||||||
|
|
||||||
dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
|
dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Applications
|
# Applications
|
||||||
#
|
#
|
||||||
|
@ -66,7 +70,10 @@ $(APPS:%=%_floppy): %_floppy:
|
||||||
$(APPS:%=%_dist): %_dist:
|
$(APPS:%=%_dist): %_dist:
|
||||||
make -C $* dist
|
make -C $* dist
|
||||||
|
|
||||||
.PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist)
|
$(APPS:%=%_install): %_install:
|
||||||
|
make -C $* install
|
||||||
|
|
||||||
|
.PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) $(APPS:%=%_install)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -107,6 +114,9 @@ else
|
||||||
mkdir $(DIST_DIR)/apps
|
mkdir $(DIST_DIR)/apps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
|
||||||
|
# $(WINE_MODULES:%=%_dist)
|
||||||
|
|
||||||
.PHONY: clean_dist_dir make_dist_dirs
|
.PHONY: clean_dist_dir make_dist_dirs
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -3,61 +3,40 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = calc
|
WINE_MODE = yes
|
||||||
|
|
||||||
#BASE_CFLAGS = -DGCC -D_WIN32_IE=0x0400
|
WINE_RC = calc
|
||||||
|
|
||||||
#RCFLAGS = -DGCC -D_WIN32_IE=0x0400
|
TARGET_TYPE = program
|
||||||
|
|
||||||
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
OBJS = settings.o \
|
TARGET_NAME = calc
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
#TARGET_CFLAGS = -I$(TEST_ROOT) -DDBG -DUNICODE -D_UNICODE
|
||||||
|
|
||||||
|
BASE_CFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
RCFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
$(COMCTL32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
settings.o \
|
||||||
button.o \
|
button.o \
|
||||||
main.o
|
main.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -lcomctl32
|
|
||||||
#LIBS = -lgdi32 -luser32 -lkernel32
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
#$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
main.h: resource.h
|
|
||||||
|
|
||||||
main.o: main.c main.h settings.h
|
|
||||||
|
|
||||||
settings.o: settings.c settings.h main.h
|
|
||||||
|
|
||||||
button.o: button.c button.h main.h
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -1,55 +1,39 @@
|
||||||
#
|
#
|
||||||
# ReactOS makefile for CMD
|
# ReactOS CMD
|
||||||
|
#
|
||||||
|
# Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
PATH_TO_TOP=..
|
PATH_TO_TOP = ../../reactos
|
||||||
TARGET=cmd.exe
|
|
||||||
|
|
||||||
all: $(TARGET)
|
TARGET_TYPE = program
|
||||||
|
|
||||||
OBJECTS = cmd.o attrib.o alias.o batch.o beep.o call.o chcp.o choice.o \
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
|
TARGET_NAME = cmd
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
msvcrt.a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
cmd.o attrib.o alias.o batch.o beep.o call.o chcp.o choice.o \
|
||||||
cls.o cmdinput.o cmdtable.o color.o console.o copy.o date.o del.o \
|
cls.o cmdinput.o cmdtable.o color.o console.o copy.o date.o del.o \
|
||||||
delay.o dir.o dirstack.o echo.o error.o filecomp.o for.o free.o \
|
delay.o dir.o dirstack.o echo.o error.o filecomp.o for.o free.o \
|
||||||
goto.o history.o if.o internal.o label.o locale.o memory.o misc.o \
|
goto.o history.o if.o internal.o label.o locale.o memory.o misc.o \
|
||||||
move.o msgbox.o path.o pause.o prompt.o redir.o ren.o screen.o \
|
move.o msgbox.o path.o pause.o prompt.o redir.o ren.o screen.o \
|
||||||
set.o shift.o start.o strtoclr.o time.o timer.o title.o type.o \
|
set.o shift.o start.o strtoclr.o time.o timer.o title.o type.o \
|
||||||
ver.o verify.o vol.o where.o window.o cmd.coff
|
ver.o verify.o vol.o where.o window.o #cmd.coff
|
||||||
|
|
||||||
CLEAN_FILES = *.o cmd.exe cmd.sym cmd.coff
|
|
||||||
|
|
||||||
|
|
||||||
cmd.exe: $(OBJECTS)
|
|
||||||
$(CC) $(OBJECTS) -lkernel32 -lmsvcrt -luser32 -o cmd.exe
|
|
||||||
$(NM) --numeric-sort cmd.exe > cmd.sym
|
|
||||||
|
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
||||||
- $(RM) $*
|
|
||||||
|
|
||||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
|
|
||||||
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:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
|
|
||||||
|
|
||||||
$(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
|
|
||||||
ifeq ($(DOSCLI),yes)
|
|
||||||
$(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
|
|
||||||
else
|
|
||||||
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -31,6 +31,11 @@ y.exe: y.o y.coff
|
||||||
$(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
|
$(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
|
||||||
$(NM) --numeric-sort y.exe > y.sym
|
$(NM) --numeric-sort y.exe > y.sym
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
.phony: install
|
||||||
|
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
clean: $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: Makefile,v 1.2 2002/08/17 15:16:38 robd Exp $
|
# $Id: Makefile,v 1.3 2003/01/15 19:55:28 robd Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../../reactos
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ TARGET_APPTYPE = windows
|
||||||
|
|
||||||
TARGET_NAME = control
|
TARGET_NAME = control
|
||||||
|
|
||||||
TARGET_SDKLIBS = roshel32.a
|
TARGET_SDKLIBS = shell32.a
|
||||||
|
|
||||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
||||||
|
|
|
@ -1,59 +1,43 @@
|
||||||
#
|
#
|
||||||
# ReactOS makefile for D-Flat/32
|
# ReactOS D-Flat/32
|
||||||
|
#
|
||||||
|
# Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
PATH_TO_TOP=..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET=edit.exe
|
TARGET_TYPE = program
|
||||||
|
|
||||||
all: $(TARGET)
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
OBJECTS = applicat.o barchart.o box.o button.o calendar.o checkbox.o clipbord.o \
|
TARGET_NAME = edit
|
||||||
combobox.o config.o console.o decomp.o dfalloc.o dialbox.o dialogs.o \
|
|
||||||
direct.o edit.o editbox.o fileopen.o helpbox.o htree.o keys.o \
|
|
||||||
listbox.o lists.o log.o menu.o menubar.o menus.o message.o msgbox.o \
|
|
||||||
normal.o pictbox.o popdown.o radio.o rect.o search.o slidebox.o spinbutt.o \
|
|
||||||
statbar.o sysmenu.o text.o textbox.o video.o watch.o window.o \
|
|
||||||
edit.coff
|
|
||||||
|
|
||||||
CLEAN_FILES = *.o *.exe *.sym *.coff
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
edit.exe: $(OBJECTS)
|
WINE_INCLUDE = ./
|
||||||
$(CC) $(OBJECTS) -lkernel32 -lcrtdll -luser32 -o edit.exe
|
|
||||||
$(NM) --numeric-sort edit.exe > edit.sym
|
|
||||||
|
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
||||||
- $(RM) $*
|
|
||||||
|
|
||||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
|
|
||||||
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:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
|
|
||||||
|
|
||||||
$(TARGET:%=../$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
|
|
||||||
ifeq ($(DOSCLI),yes)
|
|
||||||
$(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
|
|
||||||
else
|
|
||||||
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps\$*
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
#WITH_DEBUGGING=yes
|
#WITH_DEBUGGING=yes
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
crtdll.a
|
||||||
|
|
||||||
|
# msvcrt.a
|
||||||
|
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
applicat.o barchart.o box.o button.o calendar.o checkbox.o clipbord.o \
|
||||||
|
combobox.o config.o console.o decomp.o dfalloc.o dialbox.o dialogs.o \
|
||||||
|
direct.o edit.o editbox.o fileopen.o helpbox.o htree.o keys.o \
|
||||||
|
listbox.o lists.o log.o menu.o menubar.o menus.o message.o msgbox.o \
|
||||||
|
normal.o pictbox.o popdown.o radio.o rect.o search.o slidebox.o spinbutt.o \
|
||||||
|
statbar.o sysmenu.o text.o textbox.o video.o watch.o window.o
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -1,56 +1,34 @@
|
||||||
#
|
#
|
||||||
# ReactOS hcalc.
|
# ReactOS hcalc
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright 1998 DJ Delorie <dj@delorie.com>
|
|
||||||
# Distributed under the terms of the GNU GPL
|
|
||||||
# http://www.delorie.com/store/hcalc/
|
|
||||||
#
|
|
||||||
# Copyright (C) 2002 The ReactOS Project
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = hcalc
|
TARGET_TYPE = program
|
||||||
|
|
||||||
BASE_CFLAGS = # -DGCC -D_WIN32_IE=0x0400
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
RCFLAGS = # -DGCC -D_WIN32_IE=0x0400
|
TARGET_NAME = hcalc
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
OBJS = hcalc.o \
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
hcalc.o \
|
||||||
input.o
|
input.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
# main.h: resource.h
|
|
||||||
|
|
||||||
# about.o: about.c about.h main.h
|
|
||||||
|
|
||||||
# main.o: main.c main.h framewnd.h
|
|
||||||
|
|
||||||
# framewnd.o: framewnd.c framewnd.h listview.h treeview.h main.h
|
|
||||||
|
|
||||||
# listview.o: listview.c listview.h main.h
|
|
||||||
|
|
||||||
# treeview.o: treeview.c treeview.h main.h
|
|
||||||
|
|
||||||
# debug.o: debug.c debug.h main.h
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -1,30 +1,112 @@
|
||||||
include ../rules.mak
|
#
|
||||||
|
# ReactOS mc
|
||||||
|
#
|
||||||
|
# Makefile
|
||||||
|
#
|
||||||
|
|
||||||
TARGET_OS=NT
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
#CC=gcc
|
TARGET_TYPE = program
|
||||||
LINK=$(CC) -lmsvcrt
|
|
||||||
OBJ_SUFFIX=o
|
|
||||||
OBJ_PLACE=-o
|
|
||||||
EXE_PLACE=-o
|
|
||||||
|
|
||||||
# ---- Compiler-specific optional stuff
|
TARGET_OS = NT
|
||||||
MC_MISC_CFLAGS=
|
|
||||||
OBJS_DIR=release
|
|
||||||
EXTRA_MC_SRCS=
|
|
||||||
SPECIFIC_DEFINES=
|
|
||||||
SPECIFIC_MC_CFLAGS=-O2 $(MC_MISC_CFLAGS)
|
|
||||||
SPECIFIC_MC_LFLAGS_EXTRA=
|
|
||||||
SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
||||||
SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
||||||
|
|
||||||
# ---- Compiler independent defines
|
TARGET_APPTYPE = console
|
||||||
include Makefile.PC
|
|
||||||
|
|
||||||
# ---- Linkers are very compiler-specific
|
TARGET_NAME = mc
|
||||||
|
|
||||||
SPECIFIC_MC_LFLAGS=$(SPECIFIC_MC_LFLAGS_EXTRA)
|
TARGET_CFLAGS = -I./pc -I./slang -DMC_$(TARGET_OS) -DHAVE_CONFIG_H
|
||||||
MC_LIBS= # -lintl
|
|
||||||
|
|
||||||
$(MC_EXE): $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
|
WINE_MODE = yes
|
||||||
$(LINK) $(EXE_PLACE) $(MC_EXE) $(SPECIFIC_MC_LFLAGS) $+ $(MC_LIBS)
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a
|
||||||
|
|
||||||
|
MC_OBJS = \
|
||||||
|
./src/terms.o \
|
||||||
|
./src/user.o \
|
||||||
|
./src/file.o \
|
||||||
|
./src/listmode.o \
|
||||||
|
./src/cmd.o \
|
||||||
|
./src/command.o \
|
||||||
|
./src/help.o \
|
||||||
|
./src/menu.o \
|
||||||
|
./src/view.o \
|
||||||
|
./src/dir.o \
|
||||||
|
./src/info.o \
|
||||||
|
./src/widget.o \
|
||||||
|
./src/option.o \
|
||||||
|
./src/dlg.o \
|
||||||
|
./src/panelize.o \
|
||||||
|
./src/profile.o \
|
||||||
|
./src/util.o \
|
||||||
|
./src/dialog.o \
|
||||||
|
./src/ext.o \
|
||||||
|
./src/color.o \
|
||||||
|
./src/layout.o \
|
||||||
|
./src/setup.o \
|
||||||
|
./src/regex.o \
|
||||||
|
./src/hotlist.o \
|
||||||
|
./src/tree.o \
|
||||||
|
./src/win.o \
|
||||||
|
./src/complete.o \
|
||||||
|
./src/find.o \
|
||||||
|
./src/wtools.o \
|
||||||
|
./src/boxes.o \
|
||||||
|
./src/background.o \
|
||||||
|
./src/main.o \
|
||||||
|
./src/popt.o \
|
||||||
|
./src/text.o \
|
||||||
|
./src/screen.o
|
||||||
|
|
||||||
|
PC_OBJS= \
|
||||||
|
./pc/slint_pc.o \
|
||||||
|
./pc/chmod.o \
|
||||||
|
./pc/drive.o
|
||||||
|
|
||||||
|
NT_OBJS = \
|
||||||
|
./pc/cons_nt.o \
|
||||||
|
./pc/dirent_nt.o \
|
||||||
|
./pc/key_nt.o \
|
||||||
|
./pc/util_win32.o \
|
||||||
|
./pc/util_winnt.o \
|
||||||
|
./pc/util_nt.o
|
||||||
|
|
||||||
|
SLANG_NT = slw32tty.o
|
||||||
|
|
||||||
|
SLANG_OS2 = slos2tty.o
|
||||||
|
|
||||||
|
SLANG_OBJS = \
|
||||||
|
./slang/slerr.o \
|
||||||
|
./slang/slgetkey.o \
|
||||||
|
./slang/slsmg.o \
|
||||||
|
./slang/slvideo.o \
|
||||||
|
./slang/$(SLANG_$(TARGET_OS))
|
||||||
|
|
||||||
|
MCEDIT_OBJS = \
|
||||||
|
./edit/edit.o \
|
||||||
|
./edit/editcmd.o \
|
||||||
|
./edit/editdraw.o \
|
||||||
|
./edit/editmenu.o \
|
||||||
|
./edit/editoptions.o \
|
||||||
|
./edit/editwidget.o \
|
||||||
|
./edit/syntax.o \
|
||||||
|
./edit/wordproc.o
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
$(MC_OBJS) \
|
||||||
|
$(PC_OBJS) \
|
||||||
|
$(NT_OBJS) \
|
||||||
|
$(SLANG_OBJS) \
|
||||||
|
$(MCEDIT_OBJS) \
|
||||||
|
|
||||||
|
|
||||||
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
1
rosapps/mc/edit/.cvsignore
Normal file
1
rosapps/mc/edit/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
1
rosapps/mc/pc/.cvsignore
Normal file
1
rosapps/mc/pc/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
1
rosapps/mc/slang/.cvsignore
Normal file
1
rosapps/mc/slang/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
1
rosapps/mc/src/.cvsignore
Normal file
1
rosapps/mc/src/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
|
@ -3,54 +3,38 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = notepad
|
TARGET_TYPE = program
|
||||||
|
|
||||||
BASE_CFLAGS = -D_WIN32_IE=0x0400
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
RCFLAGS = -D_WIN32_IE=0x0400
|
TARGET_NAME = notepad
|
||||||
|
|
||||||
OBJS = framewnd.o \
|
TARGET_CFLAGS = -D_WIN32_IE=0x0400 # -DUNICODE -D_UNICODE
|
||||||
|
|
||||||
|
TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
$(COMCTL32_TARGET).a \
|
||||||
|
$(COMDLG32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
framewnd.o \
|
||||||
main.o
|
main.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -lcomctl32 -lcomdlg32
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
main.o: main.c main.h framewnd.h resource.h
|
|
||||||
|
|
||||||
framewnd.o: framewnd.c framewnd.h main.h resource.h
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -1,60 +1,27 @@
|
||||||
# $Id: makefile,v 1.5 2001/10/16 21:02:02 ea Exp $
|
|
||||||
#
|
#
|
||||||
# ReactOS makefile for notevil
|
# ReactOS notevil
|
||||||
# Compiler: egcs 1.1.2
|
#
|
||||||
|
# Makefile
|
||||||
#
|
#
|
||||||
PATH_TO_TOP = ..
|
|
||||||
PATH_TO_REACTOS = $(PATH_TO_TOP)/../reactos
|
|
||||||
|
|
||||||
TARGET=notevil
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
BASE_CFLAGS = -I$(PATH_TO_REACTOS)/include
|
TARGET_TYPE = program
|
||||||
|
|
||||||
all: $(TARGET).exe
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
OBJECTS = $(TARGET).o $(TARGET).coff
|
TARGET_NAME = notevil
|
||||||
|
|
||||||
CLEAN_FILES = *.o $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
#TARGET_CFLAGS = -DUNICODE -D_UNICODE
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
- $(RM) $*
|
|
||||||
|
|
||||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJECTS)
|
|
||||||
$(CC) $(OBJECTS) \
|
|
||||||
-o $(TARGET).exe \
|
|
||||||
-lkernel32 \
|
|
||||||
-luser32 \
|
|
||||||
-lmsvcrt
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
$(TARGET).coff: $(TARGET).rc
|
|
||||||
$(RC) $(RFLAGS) $(TARGET).rc $(TARGET).coff
|
|
||||||
|
|
||||||
$(TARGET).o: $(TARGET).c resource.h
|
|
||||||
|
|
||||||
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:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
|
|
||||||
|
|
||||||
$(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
|
|
||||||
ifeq ($(DOSCLI),yes)
|
|
||||||
$(CP) $* ..\$(DIST_DIR)\apps\$*
|
|
||||||
else
|
|
||||||
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -3,32 +3,34 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = regedit
|
TARGET_TYPE = program
|
||||||
|
|
||||||
BASE_CFLAGS = -D_WIN32_IE=0x0400
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
RCFLAGS = -D_WIN32_IE=0x0400
|
TARGET_NAME = regedit
|
||||||
|
|
||||||
OBJS = about.o \
|
#TARGET_CFLAGS = -I$(TEST_ROOT) -DDBG -DUNICODE -D_UNICODE
|
||||||
|
#TARGET_CFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
#TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
$(COMCTL32_TARGET).a \
|
||||||
|
$(COMDLG32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
about.o \
|
||||||
childwnd.o \
|
childwnd.o \
|
||||||
framewnd.o \
|
framewnd.o \
|
||||||
hex_str.o \
|
hex_str.o \
|
||||||
|
@ -39,38 +41,8 @@ OBJS = about.o \
|
||||||
treeview.o \
|
treeview.o \
|
||||||
trace.o
|
trace.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -lcomctl32 -lcomdlg32
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
main.h: resource.h
|
|
||||||
|
|
||||||
main.o: main.c main.h framewnd.h
|
|
||||||
|
|
||||||
framewnd.o: framewnd.c framewnd.h listview.h treeview.h main.h
|
|
||||||
|
|
||||||
childwnd.o: childwnd.c childwnd.h main.h
|
|
||||||
|
|
||||||
listview.o: listview.c listview.h main.h
|
|
||||||
|
|
||||||
treeview.o: treeview.c treeview.h main.h
|
|
||||||
|
|
||||||
about.o: about.c about.h main.h
|
|
||||||
|
|
||||||
debug.o: debug.c debug.h main.h
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "commctrl.h"
|
||||||
|
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "listview.h"
|
#include "listview.h"
|
||||||
|
|
|
@ -3,69 +3,43 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = regedt32
|
TARGET_TYPE = program
|
||||||
|
|
||||||
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
|
TARGET_NAME = regedt32
|
||||||
|
|
||||||
BASE_CFLAGS = -DGCC -D_WIN32_IE=0x0400
|
BASE_CFLAGS = -DGCC -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
RCFLAGS = -DGCC -D_WIN32_IE=0x0400
|
RCFLAGS = -DGCC -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
OBJS = framewnd.o \
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
advapi32.a \
|
||||||
|
$(COMCTL32_TARGET).a \
|
||||||
|
$(COMDLG32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
framewnd.o \
|
||||||
childwnd.o \
|
childwnd.o \
|
||||||
listview.o \
|
listview.o \
|
||||||
treeview.o \
|
treeview.o \
|
||||||
settings.o \
|
settings.o \
|
||||||
main.o
|
main.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -ladvapi32 -lcomctl32 -lcomdlg32
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
main.h: resource.h
|
|
||||||
|
|
||||||
main.o: main.c main.h framewnd.h
|
|
||||||
|
|
||||||
framewnd.o: framewnd.c framewnd.h listview.h treeview.h main.h
|
|
||||||
|
|
||||||
childwnd.o: childwnd.c childwnd.h main.h
|
|
||||||
|
|
||||||
listview.o: listview.c listview.h main.h
|
|
||||||
|
|
||||||
treeview.o: treeview.c treeview.h main.h
|
|
||||||
|
|
||||||
settings.o: settings.c settings.h main.h
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -39,6 +39,23 @@
|
||||||
#include "listview.h"
|
#include "listview.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define LVM_GETITEMTEXTA (LVM_FIRST + 45)
|
||||||
|
#define LVM_GETITEMTEXTW (LVM_FIRST + 115)
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
#define LVM_GETITEMTEXT LVM_GETITEMTEXTW
|
||||||
|
#else
|
||||||
|
#define LVM_GETITEMTEXT LVM_GETITEMTEXTA
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_) \
|
||||||
|
{ LV_ITEM _ms_lvi;\
|
||||||
|
_ms_lvi.iSubItem = iSubItem_;\
|
||||||
|
_ms_lvi.cchTextMax = cchTextMax_;\
|
||||||
|
_ms_lvi.pszText = pszText_;\
|
||||||
|
SNDMSG((hwndLV), LVM_GETITEMTEXT, (WPARAM)i, (LPARAM)(LV_ITEM FAR *)&_ms_lvi);\
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Global and Local Variables:
|
// Global and Local Variables:
|
||||||
//
|
//
|
||||||
|
|
|
@ -89,6 +89,7 @@ extern TCHAR szFrameClass[];
|
||||||
extern TCHAR szChildClass[];
|
extern TCHAR szChildClass[];
|
||||||
|
|
||||||
#if __MINGW32_MAJOR_VERSION == 1
|
#if __MINGW32_MAJOR_VERSION == 1
|
||||||
|
/*
|
||||||
typedef struct tagNMITEMACTIVATE{
|
typedef struct tagNMITEMACTIVATE{
|
||||||
NMHDR hdr;
|
NMHDR hdr;
|
||||||
int iItem;
|
int iItem;
|
||||||
|
@ -100,6 +101,7 @@ typedef struct tagNMITEMACTIVATE{
|
||||||
LPARAM lParam;
|
LPARAM lParam;
|
||||||
UINT uKeyFlags;
|
UINT uKeyFlags;
|
||||||
} NMITEMACTIVATE, FAR *LPNMITEMACTIVATE;
|
} NMITEMACTIVATE, FAR *LPNMITEMACTIVATE;
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -49,6 +49,11 @@ DIST_DIR = dist
|
||||||
SEP = \$($EMPTY_VAR)
|
SEP = \$($EMPTY_VAR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Set INSTALL_DIR to default value if not already set
|
||||||
|
# ifeq ($(INSTALL_DIR),)
|
||||||
|
INSTALL_DIR = $(PATH_TO_TOP)/reactos
|
||||||
|
# endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create variables for all the compiler tools
|
# Create variables for all the compiler tools
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.12 2003/01/07 18:16:44 robd Exp $
|
# $Id: makefile,v 1.13 2003/01/15 19:53:01 robd Exp $
|
||||||
#
|
#
|
||||||
# ReactOS System Utilities
|
# ReactOS System Utilities
|
||||||
#
|
#
|
||||||
|
@ -135,6 +135,10 @@ regexpl/regexpl.exe:
|
||||||
|
|
||||||
#---
|
#---
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
.phony: install
|
||||||
|
|
||||||
CLEAN_FILES = *.o *.exe *.sym
|
CLEAN_FILES = *.o *.exe *.sym
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
clean: $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: Makefile,v 1.8 2002/09/09 22:36:40 sedwards Exp $
|
# $Id: Makefile,v 1.9 2003/01/15 19:53:01 robd Exp $
|
||||||
#
|
#
|
||||||
# ReactOS makefile for RegExpl
|
# ReactOS makefile for RegExpl
|
||||||
#
|
#
|
||||||
|
@ -22,9 +22,9 @@ IMPORT_KERNEL32=$(ROS_LIB)/kernel32.a
|
||||||
IMPORT_ADVAPI32=$(ROS_LIB)/advapi32.a
|
IMPORT_ADVAPI32=$(ROS_LIB)/advapi32.a
|
||||||
IMPORT_USER32=$(ROS_LIB)/user32.a
|
IMPORT_USER32=$(ROS_LIB)/user32.a
|
||||||
|
|
||||||
depend.mak : *.h
|
#depend.mak : *.h
|
||||||
$(CC) \
|
# $(CC) \
|
||||||
-MM *.cpp *.c > $@
|
# -MM *.cpp *.c > $@
|
||||||
|
|
||||||
OBJECTS = \
|
OBJECTS = \
|
||||||
ArgumentParser.o \
|
ArgumentParser.o \
|
||||||
|
@ -65,14 +65,19 @@ CLEAN_FILES = \
|
||||||
depend.mak
|
depend.mak
|
||||||
|
|
||||||
|
|
||||||
$(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
|
$(TARGET_NAME).exe: $(OBJECTS) $(TARGET_NAME).coff
|
||||||
$(CPP) \
|
$(CC) -Wl,--subsystem,console -o $(TARGET_NAME).exe $(OBJECTS) $(TARGET_NAME).coff $(IMPORT_KERNEL32) $(IMPORT_USER32)
|
||||||
-Wl,--subsystem,console \
|
$(NM) --numeric-sort $(TARGET_NAME).exe > $(TARGET_NAME).sym
|
||||||
-o $@ \
|
|
||||||
$(IMPORT_KERNEL32) \
|
|
||||||
$(IMPORT_USER32) \
|
#$(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
|
||||||
$(OBJECTS)
|
# $(CPP) \
|
||||||
$(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
|
# -Wl,--subsystem,console \
|
||||||
|
# -o $@ \
|
||||||
|
# $(IMPORT_KERNEL32) \
|
||||||
|
# $(IMPORT_USER32) \
|
||||||
|
# $(OBJECTS)
|
||||||
|
# $(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
clean: $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
|
@ -101,5 +106,5 @@ else
|
||||||
$(CP) $* ../$(DIST_DIR)/apps\$*
|
$(CP) $* ../$(DIST_DIR)/apps\$*
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# EOF
|
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -1,69 +1,23 @@
|
||||||
# $Id: Makefile,v 1.1 2001/11/04 21:53:20 ea Exp $
|
|
||||||
#
|
#
|
||||||
# ReactOS makefile for TList
|
# ReactOS tlist
|
||||||
#
|
#
|
||||||
PATH_TO_TOP=../..
|
# Makefile
|
||||||
|
#
|
||||||
|
|
||||||
|
PATH_TO_TOP = ../../../reactos
|
||||||
|
|
||||||
|
TARGET_TYPE = program
|
||||||
|
|
||||||
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
|
TARGET_NAME = tlist
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = kernel32.a user32.a ntdll.a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
TARGET_NAME=tlist
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
all: $(TARGET_NAME)$(EXE_POSTFIX)
|
|
||||||
|
|
||||||
ROS_DIR=../$(PATH_TO_TOP)/reactos
|
|
||||||
ROS_INC=$(ROS_DIR)/include
|
|
||||||
ROS_LIB=$(ROS_DIR)/dk/w32/lib
|
|
||||||
IMPORT_NTDLL=$(ROS_LIB)/ntdll.a
|
|
||||||
IMPORT_KERNEL32=$(ROS_LIB)/kernel32.a
|
|
||||||
IMPORT_CRTDLL=$(ROS_LIB)/msvcrt.a
|
|
||||||
|
|
||||||
|
|
||||||
BASE_CFLAGS=-I$(ROS_INC)
|
|
||||||
|
|
||||||
OBJECTS = \
|
|
||||||
tlist.o \
|
|
||||||
$(TARGET_NAME).coff
|
|
||||||
|
|
||||||
CLEAN_FILES = \
|
|
||||||
*.o \
|
|
||||||
$(TARGET_NAME)$(EXE_POSTFIX) \
|
|
||||||
$(TARGET_NAME).sym \
|
|
||||||
$(TARGET_NAME).coff
|
|
||||||
|
|
||||||
$(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
|
|
||||||
$(CC) \
|
|
||||||
-Wl,--subsystem,console \
|
|
||||||
-o $@ \
|
|
||||||
$(OBJECTS) \
|
|
||||||
$(IMPORT_NTDLL)
|
|
||||||
$(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
|
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
||||||
- $(RM) $*
|
|
||||||
|
|
||||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
||||||
|
|
|
@ -3,34 +3,34 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
|
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = taskmgr
|
TARGET_TYPE = program
|
||||||
|
|
||||||
BASE_CFLAGS = -DGCC -D_WIN32_IE=0x0400
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
RCFLAGS = -DGCC -D_WIN32_IE=0x0400
|
TARGET_NAME = taskmgr
|
||||||
|
|
||||||
|
#TARGET_CFLAGS = -DDBG -D_WIN32_IE=0x0400
|
||||||
|
#TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
OBJS = about.o \
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
$(COMCTL32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_GCCLIBS = stdc++
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
about.o \
|
||||||
affinity.o \
|
affinity.o \
|
||||||
applpage.o \
|
applpage.o \
|
||||||
column.o \
|
column.o \
|
||||||
|
@ -49,57 +49,8 @@ OBJS = about.o \
|
||||||
taskmgr.o \
|
taskmgr.o \
|
||||||
graphctl.o
|
graphctl.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -lcomctl32
|
|
||||||
|
|
||||||
all: taskmgr.exe
|
|
||||||
|
|
||||||
taskmgr.res: taskmgr.rc
|
|
||||||
|
|
||||||
taskmgr.exe: $(OBJS) taskmgr.coff
|
|
||||||
$(CPP) -Wl,--subsystem,windows -o taskmgr.exe $(OBJS) taskmgr.coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort taskmgr.exe > taskmgr.sym
|
|
||||||
|
|
||||||
|
|
||||||
about.o: about.c about.h resource.h
|
|
||||||
|
|
||||||
affinity.o: affinity.c affinity.h
|
|
||||||
|
|
||||||
applpage.o: applpage.c applpage.h procpage.h taskmgr.h resource.h
|
|
||||||
|
|
||||||
column.o: column.c column.h resource.h
|
|
||||||
|
|
||||||
debug.o: debug.c debug.h
|
|
||||||
|
|
||||||
endproc.o: endproc.c endproc.h
|
|
||||||
|
|
||||||
font.o: font.c font.h
|
|
||||||
|
|
||||||
graph.o: graph.c graph.h resource.h
|
|
||||||
|
|
||||||
graphctl.o: graphctl.cpp graphctl.h resource.h
|
|
||||||
|
|
||||||
optnmenu.o: optnmenu.c optnmenu.h resource.h
|
|
||||||
|
|
||||||
perfdata.o: perfdata.c perfdata.h
|
|
||||||
|
|
||||||
perfpage.o: perfpage.cpp perfpage.h perfdata.h graphctl.h graph.h taskmgr.h resource.h
|
|
||||||
|
|
||||||
priority.o: priority.c priority.h
|
|
||||||
|
|
||||||
procpage.o: procpage.c procpage.h perfdata.h column.h proclist.h taskmgr.h resource.h
|
|
||||||
|
|
||||||
proclist.o: proclist.c proclist.h
|
|
||||||
|
|
||||||
run.o: run.c run.h
|
|
||||||
|
|
||||||
trayicon.o: trayicon.c trayicon.h resource.h
|
|
||||||
|
|
||||||
taskmgr.o: taskmgr.c taskmgr.h resource.h
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) taskmgr.exe
|
|
||||||
- $(RM) taskmgr.sym
|
|
||||||
- $(RM) taskmgr.coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -98,7 +98,8 @@ int APIENTRY WinMain(HINSTANCE hInstance,
|
||||||
#define _USE_CMD_MAP
|
#define _USE_CMD_MAP
|
||||||
|
|
||||||
#ifdef _USE_CMD_MAP
|
#ifdef _USE_CMD_MAP
|
||||||
#define BEGIN_CMD_MAP(a) switch( ##a ) {
|
//#define BEGIN_CMD_MAP(a) switch( ##a ) {
|
||||||
|
#define BEGIN_CMD_MAP(a) switch( a ) {
|
||||||
#define CMD_MAP_ENTRY(a, b) case a: b(); break;
|
#define CMD_MAP_ENTRY(a, b) case a: b(); break;
|
||||||
#define END_CMD_MAP(a) }
|
#define END_CMD_MAP(a) }
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,17 @@ typedef struct _IO_COUNTERS {
|
||||||
#define HDM_GETORDERARRAY (HDM_FIRST+19) // TODO: FIX ME
|
#define HDM_GETORDERARRAY (HDM_FIRST+19) // TODO: FIX ME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//#define LVM_REDRAWITEMS (LVM_FIRST + 21)
|
||||||
|
#define ListView_RedrawItems(hwndLV, iFirst, iLast) \
|
||||||
|
(BOOL)SNDMSG((hwndLV), LVM_REDRAWITEMS, (WPARAM)(int)iFirst, (LPARAM)(int)iLast)
|
||||||
|
|
||||||
|
//#if (_WIN32_IE >= 0x0300)
|
||||||
|
//#define LVM_GETHEADER (LVM_FIRST + 31)
|
||||||
|
#define ListView_GetHeader(hwnd)\
|
||||||
|
(HWND)SNDMSG((hwnd), LVM_GETHEADER, 0, 0L)
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
//#include <reactos/resource.h>
|
//#include <reactos/resource.h>
|
||||||
#include <commctrl.h>
|
//#include <commctrl.h>
|
||||||
#else
|
#else
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -29,6 +29,8 @@ clean:
|
||||||
- $(RM) *.coff
|
- $(RM) *.coff
|
||||||
- $(RM) *.exe
|
- $(RM) *.exe
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -3,37 +3,40 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
PATH_TO_TOP = ..
|
PATH_TO_TOP = ../../reactos
|
||||||
|
|
||||||
TARGET = winfile
|
TARGET_TYPE = program
|
||||||
|
|
||||||
BASE_CFLAGS = -D_WIN32_IE=0x0400
|
TARGET_APPTYPE = console
|
||||||
|
|
||||||
RCFLAGS = -D_WIN32_IE=0x0400
|
TARGET_NAME = winfile
|
||||||
|
|
||||||
OBJS = about.o \
|
TARGET_CFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
TARGET_RCFLAGS = -D_WIN32_IE=0x0400
|
||||||
|
|
||||||
|
WINE_MODE = yes
|
||||||
|
|
||||||
|
WINE_RC = $(TARGET_NAME)
|
||||||
|
|
||||||
|
WINE_INCLUDE = ./
|
||||||
|
|
||||||
|
TARGET_SDKLIBS = \
|
||||||
|
kernel32.a \
|
||||||
|
user32.a \
|
||||||
|
gdi32.a \
|
||||||
|
advapi32.a \
|
||||||
|
version.a \
|
||||||
|
$(COMCTL32_TARGET).a \
|
||||||
|
$(COMDLG32_TARGET).a
|
||||||
|
|
||||||
|
TARGET_OBJECTS = \
|
||||||
|
about.o \
|
||||||
childwnd.o \
|
childwnd.o \
|
||||||
debug.o \
|
debug.o \
|
||||||
dialogs.o \
|
dialogs.o \
|
||||||
drivebar.o \
|
drivebar.o \
|
||||||
draw.o \
|
|
||||||
entries.o \
|
entries.o \
|
||||||
framewnd.o \
|
framewnd.o \
|
||||||
listview.o \
|
listview.o \
|
||||||
|
@ -49,42 +52,8 @@ OBJS = about.o \
|
||||||
utils.o \
|
utils.o \
|
||||||
worker.o
|
worker.o
|
||||||
|
|
||||||
LIBS = -lgdi32 -luser32 -lkernel32 -ladvapi32 -lcomctl32 -lcomdlg32 -lversion
|
|
||||||
|
|
||||||
all: $(TARGET).exe
|
|
||||||
|
|
||||||
$(TARGET).res: $(TARGET).rc
|
|
||||||
|
|
||||||
$(TARGET).exe: $(OBJS) $(TARGET).coff
|
|
||||||
$(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
|
|
||||||
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
|
||||||
|
|
||||||
|
|
||||||
main.h: resource.h Makefile
|
|
||||||
|
|
||||||
about.o: about.c about.h main.h
|
|
||||||
|
|
||||||
main.o: main.c main.h childwnd.h framewnd.h main.h
|
|
||||||
|
|
||||||
childwnd.o: childwnd.c childwnd.h main.h
|
|
||||||
|
|
||||||
framewnd.o: framewnd.c framewnd.h main.h
|
|
||||||
|
|
||||||
debug.o: debug.c debug.h main.h
|
|
||||||
|
|
||||||
font.o: font.c font.h main.h
|
|
||||||
|
|
||||||
run.o: run.c run.h main.h
|
|
||||||
|
|
||||||
setttings.o: setttings.c setttings.h main.h
|
|
||||||
|
|
||||||
$(TARGET).o: $(TARGET).c $(TARGET).h main.h Makefile
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) $(OBJS)
|
|
||||||
- $(RM) $(TARGET).exe
|
|
||||||
- $(RM) $(TARGET).sym
|
|
||||||
- $(RM) $(TARGET).coff
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
Loading…
Reference in a new issue