SHARE
TWEET

makefile

a guest Mar 23rd, 2014 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AS = yasm
  2. CC = gcc
  3. CFLAGS = -m64 -O0 -W -Wall -g -fPIC
  4. CFILES = main.c nes_apu.c nsf.c
  5. ASMFILES = bender.asm
  6. OBJECTS = $(patsubst %.asm, %.o, $(ASMFILES)) $(patsubst %.c, %.o, $(CFILES))
  7. ASFLAGS = -g dwarf2 -f elf64 -DPIC
  8.  
  9. all:  nosefart
  10.  
  11. nosefart: $(OBJECTS) Makefile
  12.         $(CC) $(CFLAGS) -I. -o $@ $(OBJECTS)
  13.        
  14. %.o: %.c
  15.         $(CC) $(CFLAGS) -I. -DNSF_PLAYER -c $< -o $@
  16.        
  17. %.o: %.asm
  18.         $(AS) $(ASFLAGS) -o $@ $<
  19.        
  20. clean:
  21.         rm -f nosefart *.o
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top