OpenCores
URL https://opencores.org/ocsvn/orsoc_graphics_accelerator/orsoc_graphics_accelerator/trunk

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [sw/] [examples/] [bare/] [Makefile] - Diff between revs 5 and 9

Only display areas with differences | Details | Blame | View Log

Rev 5 Rev 9
all: hw
all: hw
hw: drivertest.bin plustest.bin ocgfxmesh.bin demo.bin
hw: drivertest.bin plustest.bin ocgfxmesh.bin demo.bin
sw: drivertest plustest ocgfxmesh demo
sw: drivertest plustest ocgfxmesh demo
#ocgfx3d.bin
#ocgfx3d.bin
INCLUDE = -I../../drivers/gfx/bare
INCLUDE = -I../../drivers/gfx/bare
TILE_SRC = ../../drivers/gfx/bare/orgfx_tileset.c
TILE_SRC = ../../drivers/gfx/bare/orgfx_tileset.c
FONT_SRC = ../../drivers/gfx/bare/orgfx_bitmap_font.c
FONT_SRC = ../../drivers/gfx/bare/orgfx_bitmap_font.c
VFONT_SRC = ../../drivers/gfx/bare/orgfx_vector_font.c
VFONT_SRC = ../../drivers/gfx/bare/orgfx_vector_font.c
3D_SRC = ../../drivers/gfx/bare/orgfx_3d.c
3D_SRC = ../../drivers/gfx/bare/orgfx_3d.c
HW_SRC = ../../drivers/gfx/bare/orgfx.c ../../drivers/gfx/bare/orgfx_plus.c
HW_SRC = ../../drivers/gfx/bare/orgfx.c ../../drivers/gfx/bare/orgfx_plus.c
SW_SRC = ../../drivers/gfx/bare/orgfx_sw.c
SW_SRC = ../../drivers/gfx/bare/orgfx_sw.c
SDL = -lSDL -lSDL_image -g
SDL = -lSDL -lSDL_image -g
vgatest.bin:
vgatest.bin:
        or32-elf-gcc -o vgatest vgatest.c
        or32-elf-gcc -o vgatest vgatest.c
        or32-elf-objcopy -O binary vgatest
        or32-elf-objcopy -O binary vgatest
        bin2binsizeword vgatest vgatest.bin
        bin2binsizeword vgatest vgatest.bin
        mv vgatest.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
        mv vgatest.bin ../../../../../../ORGFXSoC/orpsocv2/boards/xilinx/atlys/backend/par/run/
 
 
drivertest.bin:
drivertest.bin:
        or32-elf-gcc -o drivertest drivertest.c $(INCLUDE) $(HW_SRC)
        or32-elf-gcc -o drivertest drivertest.c $(INCLUDE) $(HW_SRC)
        or32-elf-objcopy -O binary drivertest
        or32-elf-objcopy -O binary drivertest
        bin2binsizeword drivertest drivertest.bin
        bin2binsizeword drivertest drivertest.bin
        mv drivertest.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
        mv drivertest.bin ../../../../../../ORGFXSoC/orpsocv2/boards/xilinx/atlys/backend/par/run/
 
 
drivertest:
drivertest:
        gcc -o drivertest drivertest.c $(INCLUDE) $(SW_SRC) $(SDL)
        gcc -o drivertest drivertest.c $(INCLUDE) $(SW_SRC) $(SDL)
plustest.bin:
plustest.bin:
        or32-elf-gcc -o plustest plustest.c $(INCLUDE) $(HW_SRC)
        or32-elf-gcc -o plustest plustest.c $(INCLUDE) $(HW_SRC)
        or32-elf-objcopy -O binary plustest
        or32-elf-objcopy -O binary plustest
        bin2binsizeword plustest plustest.bin
        bin2binsizeword plustest plustest.bin
        mv plustest.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
        mv plustest.bin ../../../../../../ORGFXSoC/orpsocv2/boards/xilinx/atlys/backend/par/run/
 
 
plustest:
plustest:
        gcc -o plustest plustest.c $(INCLUDE) $(SW_SRC) $(SDL)
        gcc -o plustest plustest.c $(INCLUDE) $(SW_SRC) $(SDL)
#ocgfx3d.bin:
#ocgfx3d.bin:
#       or32-elf-gcc -o ocgfx3d ocgfx3d.c $(INCLUDE) ../../drivers/gfx/bare/oc_gfx.c ../../drivers/gfx/bare/oc_gfx_plus.c ../../drivers/gfx/bare/oc_gfx_3d.c -lm
#       or32-elf-gcc -o ocgfx3d ocgfx3d.c $(INCLUDE) ../../drivers/gfx/bare/oc_gfx.c ../../drivers/gfx/bare/oc_gfx_plus.c ../../drivers/gfx/bare/oc_gfx_3d.c -lm
#       or32-elf-objcopy -O binary ocgfx3d
#       or32-elf-objcopy -O binary ocgfx3d
#       bin2binsizeword ocgfx3d ocgfx3d.bin
#       bin2binsizeword ocgfx3d ocgfx3d.bin
#       mv ocgfx3d.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
#       mv ocgfx3d.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
ocgfxmesh.bin:
ocgfxmesh.bin:
        or32-elf-gcc -o ocgfxmesh ocgfxmesh.c $(INCLUDE) $(HW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(VFONT_SRC) -lm
        or32-elf-gcc -o ocgfxmesh ocgfxmesh.c $(INCLUDE) $(HW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(VFONT_SRC) -lm
        or32-elf-objcopy -O binary ocgfxmesh
        or32-elf-objcopy -O binary ocgfxmesh
        bin2binsizeword ocgfxmesh ocgfxmesh.bin
        ./bin2binsizeword ocgfxmesh ocgfxmesh.bin
        mv ocgfxmesh.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
        mv ocgfxmesh.bin ../../../../../../ORGFXSoC/orpsocv2/boards/xilinx/atlys/backend/par/run/
 
 
ocgfxmesh:
ocgfxmesh:
        gcc -o ocgfxmesh ocgfxmesh.c $(INCLUDE) $(SW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(VFONT_SRC) $(SDL)
        gcc -o ocgfxmesh ocgfxmesh.c $(INCLUDE) $(SW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(VFONT_SRC) $(SDL)
demo.bin:
demo.bin:
        or32-elf-gcc -o demo demo.c $(INCLUDE) $(HW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) -lm
        or32-elf-gcc -o demo demo.c $(INCLUDE) $(HW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) -lm
        or32-elf-objcopy -O binary demo
        or32-elf-objcopy -O binary demo
        bin2binsizeword demo demo.bin
        bin2binsizeword demo demo.bin
        mv demo.bin ../../../../orpsocv2/boards/xilinx/atlys/backend/par/run/
        mv demo.bin ../../../../../../ORGFXSoC/orpsocv2/boards/xilinx/atlys/backend/par/run/
 
 
demo:
demo:
        gcc -o demo demo.c $(INCLUDE) $(SW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(SDL)
        gcc -o demo demo.c $(INCLUDE) $(SW_SRC) $(3D_SRC) $(TILE_SRC) $(FONT_SRC) $(SDL)
clean:
clean:
        rm -f vgatest.bin drivertest.bin plustest.bin ocgfxmesh.bin demo.bin
        rm -f vgatest.bin drivertest.bin plustest.bin ocgfxmesh.bin demo.bin
        rm -f drivertest plustest ocgfxmesh demo
        rm -f drivertest plustest ocgfxmesh demo
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.