*** empty log message ***
This commit is contained in:
@ -3,13 +3,14 @@ OBJS = stx.obj
|
||||
OUT = stx.exe
|
||||
|
||||
CC = lcc
|
||||
CFLAGS = -I../../.. -g2
|
||||
CFLAGS = -I../../.. -A -ansic -libcdll
|
||||
#LDFLAGS = -L../../../xp/bas -L../../../xp/stx
|
||||
#LIBS = -lxpstx -lxpbas
|
||||
LDFLAGS = -subsystem console -dynamic
|
||||
LIBS = ..\..\..\xp\bas\xpbas.lib ..\..\..\xp\stx\xpstx.lib
|
||||
|
||||
all: $(OBJS)
|
||||
lcclnk -o $(OUT) $(OBJS) $(LIBS)
|
||||
lcclnk $(LDFLAGS) -o $(OUT) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
del $(OBJS) *.obj $(OUT)
|
||||
|
18
ase/test/stx/makefile.tcc
Normal file
18
ase/test/stx/makefile.tcc
Normal file
@ -0,0 +1,18 @@
|
||||
SRCS = stx.c
|
||||
OBJS = stx.obj
|
||||
OUT = stx.exe
|
||||
|
||||
CC = \tc\tcc
|
||||
CFLAGS = -I..\..\.. -mh -D_DOS -w
|
||||
LIBS = \tc\lib\ch.lib \tc\lib\c0h.obj ..\..\..\xp\stx\xpstx.lib
|
||||
|
||||
all: $(OBJS)
|
||||
\tc\tlink $(OBJS),$(OUT),,$(LIBS)
|
||||
|
||||
clean:
|
||||
del $(OBJS) *.obj $(OUT)
|
||||
|
||||
.SUFFIXES: .c .obj
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
@ -1,5 +1,11 @@
|
||||
#include <xp/stx/stx.h>
|
||||
#include <xp/bas/stdio.h>
|
||||
|
||||
#ifdef _DOS
|
||||
#include <stdio.h>
|
||||
#define xp_printf printf
|
||||
#else
|
||||
#include <xp/bas/stdio.h>
|
||||
#endif
|
||||
|
||||
#include <xp/stx/object.h>
|
||||
#include <xp/stx/symbol.h>
|
||||
@ -26,7 +32,7 @@ int xp_main (int argc, xp_char_t* argv[])
|
||||
xp_stx_t stx;
|
||||
xp_stx_word_t i;
|
||||
|
||||
if (argc != 2) { // TODO: argument processing
|
||||
if (argc != 2) { /* TODO: argument processing */
|
||||
xp_printf (XP_TEXT("Usage: %s [-f imageFile] MainClass\n"), argv[0]);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user