WHAT'S NEW with version 0.0.3: - Fixed bug with sector sizes. - Registers at program startup are now set correctly. - Segment fixups for relocatable-segment internal entry points. - Fixed bug in DOS PSP structure. - Some resource loading is done. - Added "return" ordinal type to build program. - Added comment capability to build program.
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
CFLAGS=-g -DDEBUG_RESOURCE
|
|
|
|
######################################################################
|
|
# FILES:
|
|
#
|
|
# Be very careful if you change the order of the files listed
|
|
# here. if1632.o must linked first to guarrantee that it sits at a low
|
|
# enough address. I intend to change this requirement someday, but
|
|
# for now live with it.
|
|
#
|
|
DLL_LENGTH=256
|
|
|
|
BUILDOBJS=dll_kernel.o dll_user.o dll_gdi.o dll_unixlib.o \
|
|
dll_win87em.o dll_shell.o \
|
|
dll_kernel_tab.o dll_user_tab.o dll_gdi_tab.o dll_unixlib_tab.o \
|
|
dll_win87em_tab.o dll_shell_tab.o
|
|
|
|
MUST_BE_LINKED_FIRST=if1632.o $(BUILDOBJS)
|
|
|
|
OBJS=$(MUST_BE_LINKED_FIRST) \
|
|
dump.o heap.o ldt.o kernel.o relay.o resource.o \
|
|
selector.o user.o wine.o
|
|
|
|
TARGET=wine
|
|
LIBS=-lldt
|
|
|
|
all: $(TARGET) libldt.a
|
|
|
|
clean:
|
|
rm -f *.o *~ *.s dll_*
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
|
|
|
|
build: build.c
|
|
cc -g -o build build.c
|
|
|
|
libldt.a: ldtlib.c
|
|
$(CC) -O6 -c ldtlib.c
|
|
ar rcs libldt.a ldtlib.o
|
|
|
|
dll_kernel.S dll_kernel_tab.c: build kernel.spec
|
|
build kernel.spec
|
|
|
|
dll_user.S dll_user_tab.c: build user.spec
|
|
build user.spec
|
|
|
|
dll_gdi.S dll_gdi_tab.c: build gdi.spec
|
|
build gdi.spec
|
|
|
|
dll_unixlib.S dll_unixlib_tab.c: build unixlib.spec
|
|
build unixlib.spec
|
|
|
|
dll_win87em.S dll_win87em_tab.c: build win87em.spec
|
|
build win87em.spec
|
|
|
|
dll_shell.S dll_shell_tab.c: build shell.spec
|
|
build shell.spec
|