mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:52:57 +00:00
- Changed volinfo from a windows to a console program.
svn path=/trunk/; revision=5194
This commit is contained in:
parent
537b19a1a3
commit
3032eefcc4
3 changed files with 11 additions and 28 deletions
|
@ -10,7 +10,7 @@ TEST_APPS = alive apc args atomtest bench bitblt button button2 \
|
||||||
combo consume copymove count dump_shared_data edit event file \
|
combo consume copymove count dump_shared_data edit event file \
|
||||||
gditest hello isotest lineclip lpc messagebox mstest mutex nptest pteb \
|
gditest hello isotest lineclip lpc messagebox mstest mutex nptest pteb \
|
||||||
regtest sectest shm thread tokentest vmtest winhello dibtest lock \
|
regtest sectest shm thread tokentest vmtest winhello dibtest lock \
|
||||||
hivetest shaptest wm_paint multiwin icontest suspend
|
hivetest shaptest wm_paint multiwin icontest suspend tests/volinfo
|
||||||
|
|
||||||
TEST_MISC =
|
TEST_MISC =
|
||||||
|
|
||||||
|
|
|
@ -3,34 +3,18 @@
|
||||||
#
|
#
|
||||||
PATH_TO_TOP = ../../../..
|
PATH_TO_TOP = ../../../..
|
||||||
|
|
||||||
PROGS = volinfo
|
TARGET_NORC = yes
|
||||||
|
|
||||||
OBJECTS = volinfo.o
|
TARGET_TYPE = program
|
||||||
|
|
||||||
LIBS =
|
TARGET_APPTYPE = console
|
||||||
CFLAGS =
|
|
||||||
|
|
||||||
all: $(PROGS:%=%.exe)
|
TARGET_NAME = volinfo
|
||||||
|
|
||||||
.phony: all
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
||||||
clean:
|
|
||||||
- $(RM) *.o *.exe *.sym
|
|
||||||
|
|
||||||
.phony: clean
|
|
||||||
|
|
||||||
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
|
|
||||||
|
|
||||||
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
|
|
||||||
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
|
|
||||||
|
|
||||||
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
|
|
||||||
|
|
||||||
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
|
|
||||||
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
|
|
||||||
|
|
||||||
volinfo.exe: $(OBJECTS)
|
|
||||||
$(CC) $(CFLAGS) -Wl,--subsystem,windows $(OBJECTS) $(LIBS) -o volinfo.exe
|
|
||||||
$(NM) --numeric-sort volinfo.exe > volinfo.sym
|
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
# EOF
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h> /* for strcat() */
|
#include <string.h> /* for strcat() */
|
||||||
|
|
||||||
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
int main(void)
|
||||||
LPSTR lpszCmdLine, int nCmdShow)
|
|
||||||
{
|
{
|
||||||
char drive, root[]="C:\\", label[1002], fsname[1002];
|
char drive, root[]="C:\\", label[1002], fsname[1002];
|
||||||
DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;
|
DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue