b8

A x86 32bits native fantazy console.
git clone git://git.vgx.fr/b8
Log | Files | Refs

Makefile (608B)


      1 CFLAGS=-Wall -Wextra
      2 LDFLAGS=-Wl,--section-start=mem_section=0x20000
      3 LDLIBS=-lSDL2
      4 
      5 PREFIX=/usr/local
      6 BINDIR=$(PREFIX)/bin
      7 
      8 PROG=b8
      9 CARTS=$(patsubst %.asm,%.bin,$(wildcard *.asm))
     10 
     11 INSTALL_LIST=install.list
     12 
     13 all: $(PROG) $(CARTS)
     14 
     15 clean:
     16 	-$(RM) $(PROG) $(CARTS)
     17 
     18 $(PROG): media.c
     19 
     20 %.bin: %.asm
     21 	yasm -f bin $< -o $@
     22 	chmod +x $@
     23 
     24 %.bin: %.s
     25 	yasm -f bin -r gas -p gas $< -o $@
     26 
     27 install: all
     28 	install -m0755 $(PROG) $(DESTDIR)$(BINDIR)
     29 	echo $(DESTDIR)$(BINDIR)/$(PROG) >> $(INSTALL_LIST)
     30 
     31 uninstall: $(INSTALL_LIST)
     32 	$(RM) $(foreach installed,$(file < $(INSTALL_LIST)),$(installed))
     33 	$(RM) $(INSTALL_LIST)
     34