mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
fix some warnings in the makefile and added a time_t test
svn path=/trunk/; revision=2834
This commit is contained in:
parent
5a5caf8ad5
commit
1e8b9112f0
|
@ -4,7 +4,7 @@
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
PROGS= test-stdio tst-printf tstdiomisc bug2 bug3 \
|
PROGS= test-stdio tst-printf tstdiomisc bug2 bug3 \
|
||||||
temptest test-fseek test_rdwr testfsd
|
temptest test-fseek test_rdwr testfsd time_t
|
||||||
|
|
||||||
all: $(PROGS:%=%.exe)
|
all: $(PROGS:%=%.exe)
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ clean:
|
||||||
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
|
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
|
||||||
|
|
||||||
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
|
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
|
||||||
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
|
|
||||||
|
|
||||||
dist: $(PROGS:%=$(DIST_DIR)/apps/%.exe)
|
dist: $(PROGS:%=$(DIST_DIR)/apps/%.exe)
|
||||||
|
|
||||||
|
@ -67,4 +66,8 @@ testfsd.exe: testfsd.c testsuite.c
|
||||||
$(CC) testfsd.c testsuite.c -lkernel32 -o testfsd.exe
|
$(CC) testfsd.c testsuite.c -lkernel32 -o testfsd.exe
|
||||||
$(NM) --numeric-sort testfsd.exe > testfsd.sym
|
$(NM) --numeric-sort testfsd.exe > testfsd.sym
|
||||||
|
|
||||||
|
time_t.exe: time_t.c
|
||||||
|
$(CC) time_t.c -lkernel32 -o time_t.exe
|
||||||
|
$(NM) --numeric-sort time_t.exe > time_t.sym
|
||||||
|
|
||||||
include ../../rules.mak
|
include ../../rules.mak
|
||||||
|
|
12
reactos/apps/tests/test_old/time_t.c
Normal file
12
reactos/apps/tests/test_old/time_t.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
struct tm *ptr;
|
||||||
|
time_t lt;
|
||||||
|
|
||||||
|
lt = time(NULL);
|
||||||
|
ptr = localtime(<);
|
||||||
|
printf(asctime(ptr));
|
||||||
|
}
|
Loading…
Reference in a new issue