mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +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
|
@ -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 =
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue