- Changed volinfo from a windows to a console program.

svn path=/trunk/; revision=5194
This commit is contained in:
Hartmut Birr 2003-07-20 22:55:39 +00:00
parent 537b19a1a3
commit 3032eefcc4
3 changed files with 11 additions and 28 deletions

View file

@ -10,7 +10,7 @@ TEST_APPS = alive apc args atomtest bench bitblt button button2 \
combo consume copymove count dump_shared_data edit event file \
gditest hello isotest lineclip lpc messagebox mstest mutex nptest pteb \
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 =

View file

@ -3,34 +3,18 @@
#
PATH_TO_TOP = ../../../..
PROGS = volinfo
TARGET_NORC = yes
OBJECTS = volinfo.o
TARGET_TYPE = program
LIBS =
CFLAGS =
TARGET_APPTYPE = console
all: $(PROGS:%=%.exe)
TARGET_NAME = volinfo
.phony: all
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
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -5,8 +5,7 @@
#include <stdio.h>
#include <string.h> /* for strcat() */
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdLine, int nCmdShow)
int main(void)
{
char drive, root[]="C:\\", label[1002], fsname[1002];
DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;