2002-09-03 18:44:19 +00:00
|
|
|
# $Id: makefile,v 1.11 2002/09/03 18:44:18 chorns Exp $
|
1999-05-16 07:27:35 +00:00
|
|
|
#
|
|
|
|
# ReactOS System Utilities
|
|
|
|
#
|
|
|
|
# 1999-02-16 (Emanuele Aliberti)
|
2000-05-28 17:44:53 +00:00
|
|
|
# Added chkdskx.c and formatx.c by Mark Russinovich
|
1999-05-16 07:27:35 +00:00
|
|
|
# (mark@sysinternals.com) and shutdown.c
|
|
|
|
#
|
|
|
|
# 1999-03-03 (Emanuele Aliberti)
|
|
|
|
# Added login.c and chklib.c
|
|
|
|
#
|
|
|
|
# 1999-03-16 (Emanuele Aliberti)
|
|
|
|
# Added regnav.c
|
|
|
|
#
|
2000-02-29 23:57:47 +00:00
|
|
|
# 1999-12-19 (ea)
|
|
|
|
# Added qsi.c
|
|
|
|
#
|
2000-04-25 23:22:57 +00:00
|
|
|
# 2000-04-23 (ea)
|
|
|
|
# Added pedump.c
|
|
|
|
#
|
2000-09-11 20:17:02 +00:00
|
|
|
# 2000-08-4 (ea)
|
|
|
|
# Added ldd.c; removed login.c
|
|
|
|
#
|
2001-10-16 21:02:02 +00:00
|
|
|
#
|
2001-07-28 08:02:05 +00:00
|
|
|
PATH_TO_TOP=..
|
|
|
|
PATH_TO_CVSROOT=../$(PATH_TO_TOP)
|
2000-04-25 23:22:57 +00:00
|
|
|
|
2001-07-28 08:02:05 +00:00
|
|
|
BASE_CFLAGS = -I$(PATH_TO_CVSROOT)/reactos/include
|
2000-04-25 23:22:57 +00:00
|
|
|
|
2001-07-28 08:02:05 +00:00
|
|
|
|
|
|
|
ROS_DIR=$(PATH_TO_CVSROOT)/reactos
|
2000-04-25 23:22:57 +00:00
|
|
|
ROS_INC=$(ROS_DIR)/include
|
2001-10-16 21:02:02 +00:00
|
|
|
ROS_LIB=$(ROS_DIR)/dk/w32/lib
|
|
|
|
IMPORT_NTDLL=$(ROS_LIB)/ntdll.a
|
|
|
|
IMPORT_FMIFS=$(ROS_LIB)/fmifs.a
|
|
|
|
IMPORT_KERNEL32=$(ROS_LIB)/kernel32.a
|
|
|
|
IMPORT_ADVAPI32=$(ROS_LIB)/advapi32.a
|
|
|
|
IMPORT_USER32=$(ROS_LIB)/user32.a
|
2002-09-03 18:44:19 +00:00
|
|
|
IMPORT_MSVCRT=
|
2000-04-25 23:22:57 +00:00
|
|
|
|
|
|
|
TARGET=\
|
2002-09-03 18:44:19 +00:00
|
|
|
chklib.exe \
|
|
|
|
ldd.exe \
|
|
|
|
pedump.exe \
|
|
|
|
shutdown.exe \
|
|
|
|
chkdsk.exe \
|
|
|
|
format.exe \
|
|
|
|
regexpl/regexpl.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
|
1999-10-03 22:12:24 +00:00
|
|
|
all: $(TARGET)
|
|
|
|
|
2000-10-04 21:04:31 +00:00
|
|
|
|
1999-05-16 07:27:35 +00:00
|
|
|
# By Mark Russinovich
|
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
chkdsk.exe: chkdsk.o win32err.o wmain.o chkdsk.coff
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
2000-09-11 20:17:02 +00:00
|
|
|
chkdsk.o \
|
|
|
|
win32err.o \
|
|
|
|
wmain.o \
|
|
|
|
chkdsk.coff \
|
|
|
|
$(IMPORT_FMIFS) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-04-25 23:22:57 +00:00
|
|
|
-o chkdsk.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort chkdsk.exe > chkdsk.sym
|
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
format.exe: format.o win32err.o wmain.o format.coff
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
2000-09-11 20:17:02 +00:00
|
|
|
format.o \
|
|
|
|
win32err.o \
|
|
|
|
wmain.o \
|
|
|
|
format.coff \
|
|
|
|
$(IMPORT_FMIFS) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-04-25 23:22:57 +00:00
|
|
|
-o format.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort format.exe > format.sym
|
|
|
|
|
2000-02-29 23:57:47 +00:00
|
|
|
#---
|
1999-05-16 07:27:35 +00:00
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
chklib.exe: chklib.o win32err.o chklib.coff
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
2000-09-11 20:17:02 +00:00
|
|
|
chklib.o \
|
|
|
|
win32err.o \
|
|
|
|
chklib.coff \
|
|
|
|
$(IMPORT_KERNEL32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-04-25 23:22:57 +00:00
|
|
|
-o chklib.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort chklib.exe > chklib.sym
|
|
|
|
|
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
shutdown.exe: shutdown.o win32err.o shutdown.coff
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
2000-09-11 20:17:02 +00:00
|
|
|
shutdown.o \
|
|
|
|
win32err.o \
|
|
|
|
shutdown.coff \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_USER32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-04-25 23:22:57 +00:00
|
|
|
-o shutdown.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort shutdown.exe > shutdown.sym
|
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
pedump.exe: pedump.o pedump.coff
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
2000-09-11 20:17:02 +00:00
|
|
|
pedump.o \
|
|
|
|
pedump.coff \
|
|
|
|
$(IMPORT_NTDLL) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-04-25 23:22:57 +00:00
|
|
|
-o pedump.exe
|
|
|
|
$(NM) --numeric-sort pedump.exe > pedump.sym
|
|
|
|
|
|
|
|
pedump.o: pedump.c
|
2000-02-29 23:57:47 +00:00
|
|
|
|
2000-09-11 20:17:02 +00:00
|
|
|
ldd.exe: ldd.o win32err.o ldd.coff
|
|
|
|
$(CC) \
|
|
|
|
ldd.o \
|
|
|
|
win32err.o \
|
|
|
|
ldd.coff \
|
|
|
|
$(IMPORT_KERNEL32) \
|
2001-07-28 08:02:05 +00:00
|
|
|
$(IMPORT_MSVCRT) \
|
2000-09-11 20:17:02 +00:00
|
|
|
-o ldd.exe
|
|
|
|
$(NM) --numeric-sort ldd.exe > ldd.sym
|
|
|
|
|
|
|
|
ldd.o: ldd.c
|
|
|
|
|
2000-10-04 21:04:31 +00:00
|
|
|
# By Nedko Arnaoudov
|
|
|
|
|
2002-09-03 18:44:19 +00:00
|
|
|
regexpl/regexpl.exe:
|
2000-10-04 21:04:31 +00:00
|
|
|
make -C regexpl
|
|
|
|
|
1999-05-16 07:27:35 +00:00
|
|
|
#---
|
|
|
|
|
|
|
|
CLEAN_FILES = *.o *.exe *.sym
|
|
|
|
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
|
|
- $(RM) $*
|
|
|
|
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
1999-10-03 22:12:24 +00:00
|
|
|
|
|
|
|
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
|
1999-05-16 07:27:35 +00:00
|
|
|
|
|
|
|
include ../rules.mak
|
|
|
|
|
|
|
|
# EOF
|