2000-04-25 23:22:57 +00:00
|
|
|
# $Id: makefile,v 1.4 2000/04/25 23:22:57 ea Exp $
|
1999-05-16 07:27:35 +00:00
|
|
|
#
|
|
|
|
# ReactOS System Utilities
|
|
|
|
#
|
|
|
|
# 1999-02-16 (Emanuele Aliberti)
|
|
|
|
# Added chkdskx.c and formatx.c by by Mark Russinovich
|
|
|
|
# (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
|
|
|
|
#
|
|
|
|
BASE_CFLAGS = -I../../reactos/include
|
|
|
|
|
|
|
|
|
|
|
|
ROS_DIR=../../reactos
|
|
|
|
ROS_INC=$(ROS_DIR)/include
|
|
|
|
ROS_LIB=$(ROS_DIR)/lib
|
|
|
|
IMPORT_NTDLL=$(ROS_LIB)/ntdll/ntdll.a
|
|
|
|
IMPORT_FMIFS=$(ROS_LIB)/fmifs/fmifs.a
|
|
|
|
IMPORT_KERNEL32=$(ROS_LIB)/kernel32/kernel32.a
|
|
|
|
IMPORT_USER32=$(ROS_LIB)/user32/user32.a
|
|
|
|
IMPORT_CRTDLL=$(ROS_LIB)/crtdll/crtdll.a
|
|
|
|
|
|
|
|
TARGET=\
|
|
|
|
regnav.exe \
|
|
|
|
chklib.exe \
|
|
|
|
qsi.exe
|
|
|
|
# pedump.exe \
|
|
|
|
# shutdown.exe \
|
|
|
|
# chkdsk.exe \
|
|
|
|
# format.exe \
|
1999-05-16 07:27:35 +00:00
|
|
|
|
1999-10-03 22:12:24 +00:00
|
|
|
all: $(TARGET)
|
|
|
|
|
1999-05-16 07:27:35 +00:00
|
|
|
# By Mark Russinovich
|
|
|
|
|
|
|
|
chkdsk.exe: chkdsk.o win32err.o wmain.o
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
|
|
|
chkdsk.o \
|
|
|
|
win32err.o \
|
|
|
|
wmain.o \
|
|
|
|
$(IMPORT_FMIFS) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o chkdsk.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort chkdsk.exe > chkdsk.sym
|
|
|
|
|
|
|
|
format.exe: format.o win32err.o wmain.o
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
|
|
|
format.o \
|
|
|
|
win32err.o \
|
|
|
|
wmain.o \
|
|
|
|
$(IMPORT_FMIFS) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-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
|
|
|
|
|
|
|
chklib.exe: chklib.o win32err.o
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
|
|
|
chklib.o \
|
|
|
|
win32err.o \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o chklib.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort chklib.exe > chklib.sym
|
|
|
|
|
|
|
|
|
1999-10-03 22:12:24 +00:00
|
|
|
regnav.exe: regnav.o win32err.o
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
|
|
|
regnav.o \
|
|
|
|
win32err.o \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o regnav.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort regnav.exe > regnav.sym
|
|
|
|
|
|
|
|
|
|
|
|
shutdown.exe: shutdown.o win32err.o
|
2000-04-25 23:22:57 +00:00
|
|
|
$(CC) \
|
|
|
|
shutdown.o \
|
|
|
|
win32err.o \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_USER32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o shutdown.exe
|
1999-05-16 07:27:35 +00:00
|
|
|
$(NM) --numeric-sort shutdown.exe > shutdown.sym
|
|
|
|
|
2000-02-29 23:57:47 +00:00
|
|
|
qsi.exe: qsi.o
|
2000-04-25 23:22:57 +00:00
|
|
|
echo $(BASE_CFLAGS)
|
|
|
|
$(CC) \
|
|
|
|
qsi.o \
|
|
|
|
$(IMPORT_NTDLL) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o qsi.exe
|
2000-02-29 23:57:47 +00:00
|
|
|
$(NM) --numeric-sort qsi.exe > qsi.sym
|
|
|
|
|
2000-04-25 23:22:57 +00:00
|
|
|
qsi.o: qsi.c $(ROS_INC)/ddk/zwtypes.h
|
|
|
|
|
|
|
|
pedump.exe: pedump.o
|
|
|
|
$(CC) \
|
|
|
|
pedump.o \
|
|
|
|
$(IMPORT_NTDLL) \
|
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
-o pedump.exe
|
|
|
|
$(NM) --numeric-sort pedump.exe > pedump.sym
|
|
|
|
|
|
|
|
pedump.o: pedump.c
|
2000-02-29 23:57:47 +00:00
|
|
|
|
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
|