version 1.2 | | version 1.3 |
---|
| | |
LIBDIR = $(TOPDIR)/lib/ | | LIBDIR = $(TOPDIR)/lib/ |
| | |
| | include $(TOPDIR)/pre.mak |
| | |
#Figured its better to put it here than in defines, since its not supposed | | #Figured its better to put it here than in defines, since its not supposed |
#to be set by the user, only the maintainer | | #to be set by the user, only the maintainer |
D1XMAJOR = 1 | | D1XMAJOR = 1 |
| | |
LINKLIBS += -lm | | LINKLIBS += -lm |
endif | | endif |
ifdef DEBUG | | ifdef DEBUG |
CFLAGS = -g -c -Wall -O -funsigned-char -I$(TOPDIR)/include | | CFLAGS = -g -Wall -O -funsigned-char -I$(TOPDIR)/include |
else | | else |
CFLAGS = -g -c -Wall -O -funsigned-char -fomit-frame-pointer -I$(TOPDIR)/include -DNDEBUG | | CFLAGS = -g -Wall -O -funsigned-char -fomit-frame-pointer -I$(TOPDIR)/include -DNDEBUG |
endif | | endif |
ifndef MONO | | ifndef MONO |
CFLAGS += -DNMONO | | CFLAGS += -DNMONO |
| | |
endif | | endif |
| | |
%.o: %.c | | %.o: %.c |
$(CC) $(CFLAGS) $(E_CFLAGS) -o $@ $< | | $(CC) -c $(CFLAGS) $(E_CFLAGS) -o $@ $< |
%.o: %.asm | | %.o: %.asm |
$(NASM) $< -o $@ | | $(NASM) $< -o $@ |
%.o: %.s | | %.o: %.s |
$(CC) $(CFLAGS) $(patsubst %.s,%.S,$<) -o $@ | | $(CC) -c $(CFLAGS) $(patsubst %.s,%.S,$<) -o $@ |
| | |
| | |
ifdef SUBDIRS | | ifdef SUBDIRS |