started build script and went on a massive bug hunt
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user