git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/examples/msxdos/smoke/Makefile

      1 # If you move this project you can change the directory
      2 # to match your GBDK root directory (ex: GBDK_HOME = "C:/GBDK/"
      3 ifndef GBDK_HOME
      4 	GBDK_HOME = ../../../
      5 endif
      6 
      7 LCC = $(GBDK_HOME)/bin/lcc -mz80:msxdos -Wm-yoA -Wl-j
      8 
      9 BINS	= smoketest.com
     10 
     11 # GBDK_DEBUG = ON
     12 ifdef GBDK_DEBUG
     13 	LCCFLAGS += -debug -v
     14 endif
     15 
     16 
     17 all:	$(BINS)
     18 
     19 ASRC = $(wildcard *.s)
     20 CSRC = $(wildcard *.c) 
     21 
     22 OBJS = $(CSRC:%.c=%.o) $(ASRC:%.s=%.o)
     23 
     24 compile.bat: Makefile
     25 	@echo "REM Automatically generated from Makefile" > compile.bat
     26 	@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat
     27 
     28 # Compile and link single file in one pass
     29 
     30 %.o:	%.c
     31 	$(LCC) $(LCCFLAGS) -c -o $@ $<
     32 
     33 %.o:	%.s
     34 	$(LCC) $(LCCFLAGS) -c -o $@ $<
     35 
     36 $(BINS):	$(OBJS)
     37 	$(LCC) $(LCCFLAGS) -Wm-yS -o $@ $^
     38 	rm -f *.map *.noi *.ihx *.lst *.rst
     39 
     40 clean:
     41 	rm -f *.o *.lst *.map *.com *~ *.rel *.cdb *.adb *.ihx *.lnk *.sym *.asm *.noi *.0?? *.rom *.rst
     42 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.