8

a CHIP-8 emulator
Log | Files | Refs | README

Makefile (278B)


      1 include config.mk
      2 
      3 BIN = 8
      4 
      5 HEADER = av.h
      6 
      7 COMMONOBJ = \
      8 		8.o \
      9 		av.o \
     10 
     11 all: $(BIN)
     12 
     13 .PHONY: clean
     14 
     15 clean:
     16 	-rm -f ${BIN} 8.o av.o
     17 
     18 .SUFFIXES: .c .o
     19 
     20 .c.o:
     21 	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
     22 
     23 8: $(COMMONOBJ) $(HEADER)
     24 	$(CC) $(CFLAGS) -o $@ $(COMMONOBJ) $(LDFLAGS) $(LDLIBS)