41 lines
905 B
Makefile
41 lines
905 B
Makefile
#Makefile for yab2cpp
|
|
#by Samuel D. Crow
|
|
|
|
#presently architecture-neutral
|
|
|
|
CC=g++
|
|
LD=g++
|
|
#release build
|
|
#FLAGS=-c -Os -std=c++11
|
|
#LDFLAGS=
|
|
|
|
#debug build
|
|
FLAGS=-c -g -Og -std=c++11
|
|
LDFLAGS=
|
|
|
|
AR=ar r
|
|
LD=g++
|
|
|
|
default: yab2cpp
|
|
|
|
yabDataStructures.o: yabDataStructures.cpp yab2cpp.h
|
|
$(CC) $(FLAGS) -o yabDataStructures.o yabDataStructures.cpp
|
|
|
|
yabCodeStructures.o: yabCodeStructures.cpp yab2cpp.h
|
|
$(CC) $(FLAGS) -o yabCodeStructures.o yabCodeStructures.cpp
|
|
|
|
yabFunctions.o: yabFunctions.cpp yab2cpp.h
|
|
$(CC) $(FLAGS) -o yabFunctions.o yabFunctions.cpp
|
|
|
|
yab2cpp.o: yab2cpp.cpp yab2cpp.h
|
|
$(CC) $(FLAGS) -o yab2cpp.o yab2cpp.cpp
|
|
|
|
BASIC_framework.a: yabDataStructures.o yabCodeStructures.o yabFunctions.o
|
|
$(AR) yabDataStructures.o yabCodeStructures.o yabFunctions.o
|
|
|
|
yab2cpp: BASIC_framework.a yab2cpp.o
|
|
$(LD) $(LDFLAGS) -o buildyab2cpp yab2cpp.o -lBASIC_framework
|
|
|
|
clean:
|
|
rm -f *.o yab2cpp BASIC_framework.a
|