1LIBRARY := yes
2SRCDIR := src
3
4#LEZ=yes
5#LEF_EXTRA := $(foreach dir,$(SUBDIRS),$(dir)/lib$(dir).a)
6
7#ELFS=$(shell basename `pwd`).elf
8#ELF_EXTRA := $(foreach dir,$(SUBDIRS),$(dir)/lib$(dir).a)
9
10
11FILES = log\
12 memguard\
13 cpu/nes6502/nes6502\
14 cpu/nes6502/dis6502\
15 machine/nsf\
16 sndhrdw/nes_apu\
17 sndhrdw/vrcvisnd\
18 sndhrdw/fmopl\
19 sndhrdw/vrc7_snd\
20 sndhrdw/mmc5_snd\
21 sndhrdw/fds_snd
22
23# linux/main_linu
24
25KOS_LOCAL_CFLAGS := -DHOST_LITTLE_ENDIAN -DDCPLAYA=1 -DNSF_PLAYER=1
26
27OBJS := $(addprefix $(SRCDIR)/,$(addsuffix .o, $(FILES)))
28
29KOS_LOCAL_INCS := -I../../../include\
30 -I$(SRCDIR)\
31 -I$(SRCDIR)/linux\
32 -I$(SRCDIR)/sndhrdw\
33 -I$(SRCDIR)/machine\
34 -I$(SRCDIR)/cpu/nes6502
35
36# -I$(BUILDDIR)
37
38OPTIMIZE = $(OPTIMIZE_FOR_SPEED)
39
40include ../../../../Makefile.inc
41