view Makefile @ 0:4410c9c7750d

Initial import.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 24 Feb 2015 18:53:52 +0200
parents
children a07eb3757bf0
line wrap: on
line source

# dxa makefile
# marko's originally, hacked up by cameron

TARGET = dxa
OBJECTS = scan.o vector.o dump.o table.o label.o main.o
VERSION = 0.1.3

# choose the compiler and flags

CC = gcc
CFLAGS = -Wall -Wmissing-prototypes -O6
#CFLAGS = -Wall -Wmissing-prototypes -ggdb

#CC = cc
#CFLAGS = -O
#CFLAGS = -O2

all: $(TARGET)

$(TARGET) : $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ $(OBJECTS)

scan.o : structures.h proto.h options.h opcodes.h
vector.o : structures.h proto.h options.h
dump.o : structures.h proto.h options.h opcodes.h
table.o : structures.h proto.h
label.o : structures.h proto.h
main.o : structures.h proto.h options.h opcodes.h

clean:
	rm -f $(OBJECTS) $(TARGET) core

dist: clean
	cd ..;tar cvf dxa-$(VERSION).tar dxa-$(VERSION);gzip dxa-$(VERSION).tar