mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
The code comes from the RGBDS source and documentation zip files found on this website: http://www.otakunozoku.com/1999/08/01/rednex-gameboy-development-system/ The same website reports: "Best of all, it’s free! That’s right! Free! The executables are free to use, either for personal hobby use, or full blown commercial productions — I know of at least a dozen commercial games you can purchase that are written with RGBDS — and the source code is free to modify. "The only thing I ask is that you do not charge for either distributing the executables or source code, and any derivative works you give credit to the original authors of the tools. That means you have to say “Thanks” to the original authors SurfSmurf and Otaku." Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
40 lines
824 B
Plaintext
40 lines
824 B
Plaintext
|
|
|
|
CC = wcc386 $(COPT) /d$(TARGET_SYSTEM)
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJS)
|
|
%create link.lnk
|
|
!ifeq TARGET DOS
|
|
%append link.lnk system pmodew
|
|
!endif
|
|
!ifeq TARGET WIN95
|
|
%append link.lnk system nt
|
|
!endif
|
|
%append link.lnk option map
|
|
%append link.lnk option stack=256k
|
|
%append link.lnk debug watcom all
|
|
%append link.lnk name $(EXE)
|
|
for %i in ($(OBJS)) do %append link.lnk file $(OBJDIR)\%i
|
|
wlink @link.lnk
|
|
!ifeq TARGET DOS
|
|
d:\code\pmodew\pmwsetup /B0 $(EXE)
|
|
!endif
|
|
|
|
.c.obj: .AUTODEPEND
|
|
$(CC) -fo=$(OBJDIR)$^. $[@
|
|
|
|
.y.c:
|
|
$(BISON) -o $^. $[.
|
|
|
|
asmy.y: ..\yaccprt1.y ..\yaccprt3.y yaccprt2.y yaccprt4.y
|
|
copy ..\yaccprt1.y+yaccprt2.y+..\yaccprt3.y+yaccprt4.y asmy.y
|
|
|
|
clean: .SYMBOLIC
|
|
del $(OBJDIR)*.obj
|
|
del asmy.*
|
|
del *.err
|
|
del $(EXE)
|
|
del *.map
|
|
del link.lnk |