asm/Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 28 May 2009 17:41:18 +0200
changeset 97 f883331a1bf2
parent 66 2b4f786d9073
child 166 ecd6492274ad
permissions -rw-r--r--
alpha_beta ui: removed a redundant line The original print routine was from an open book by galileo computing and the redundant line was introduced there. committer: Markus Bröker <mbroeker@largo.homelinux.org>

      CC = gcc -g -ggdb
  CFLAGS = -Wall -O2 -Iinclude
 LDFLAGS =
    NASM = nasm -f elf -Iinclude/
  TARGET = stackinfo
OBJECTS  = main.o
OBJECTS += get_sp.o

.SUFFIXES: .c .asm

.c.o:
	@echo Compiling $< ...
	@$(CC) -c $(CFLAGS) -o $@ $<

.asm.o:
	@echo Assembling $< ...
	@$(NASM) $< -o $@

all: $(TARGET) decimal

$(TARGET): $(OBJECTS)
	@echo Linking $(OBJECTS) ...
	@$(CC) $(LDFLAGS) $(OBJECTS) -o $@

decimal: decimal.o
	$(CC) $(CFLAGS) -o $@ $<

.PHONY: clean uninstall

clean:
	rm -f $(TARGET) decimal *.o *~

install: $(TARGET) decimal
	install -d ~/bin
	install $(TARGET) decimal ~/bin

uninstall:
	rm -f ~/bin/decimal
	rm -f ~/bin/$(TARGET)