# Makefile for project "attrs"
# Automatically generated by idltool
#
# $Id: genskeleton.cpp,v 1.7 2005/03/15 13:57:57 dwuerkner Exp $
#
# $Revision: 1.7 $
#
#
# $Log
#

# Uncomment the next line if you are cross compiling
# CROSS_COMPILE = ppc-amigaos-

CC     = $(CROSS_COMPILE)gcc
CXX    = $(CROSS_COMPILE)c++
AS     = $(CROSS_COMPILE)as
LD     = $(CROSS_COMPILE)ld
RANLIB = $(CROSS_COMPILE)ranlib
RM     = delete
# RM	 = rm

# Change these as required
OPTIMIZE = -O2
DEBUG =    -g -DDEBUG
CPPFLAGS = -I ../../../Dynaloader -I/..  -I../../../../
CFLAGS = -Wall $(OPTIMIZE) $(DEBUG)

# Flags passed to gcc during linking
LINK = -mcrt=clib2-ts -shared

# Name of the "thing" to build
TARGET = TW.pmod

# Additional linker libraries
LIBS =	../TW.o ../bi_00_t.o ../bi_01_t.o ../cp_02_t.o ../ma_03_t.o -L ../../../ -lm -L/SDK/LOcal/clib2/lib


# Version of the library to build
VERSION = 51

# Source code files used in this project
# Add any additional files to this line

SRCS = init.c

# -------------------------------------------------------------
# Nothing should need changing below this line

# "main" Interface Source Files
main_SRCS = main/Obtain.c main/Release.c

OBJS = $(main_SRCS:.c=.o)  $(SRCS:.c=.o)
# Rules for building
$(TARGET): $(OBJS)
	$(CC) $(LINK) -o $(TARGET) $(OBJS) $(LIBS)


init.o: init.c pmod_vectors.c

.PHONY: clean
clean:
	$(RM) $(TARGET) $(OBJS)

.PHONY: revision
revision:
	bumprev $(VERSION) $(TARGET)

