Files
Yab2Cpp/yab-IDE/BuildFactory/AutoFooter.mak
Jessica Hamilton 8a836e1b10 Create libyab.so, as well as an install target.
* This also updates the BuildFactory Automakefile to
  make use of libyab.so.
* fixattributes.sh has been integrated into the
  Makefile, so is no longer required.
* yab binaries will now depend on libyab.so, including
  yab itself.
2015-05-31 14:19:10 +12:00

24 lines
731 B
Makefile

##
## GCC Options
##
SH=$(shell finddir B_SYSTEM_HEADERS_DIRECTORY)
UH= $(shell finddir B_USER_HEADERS_DIRECTORY)
GCC = gcc
GCC_OPT = $(DBG) $(OPT) -I. $(addprefix -I,$(SH)) $(addprefix -I,$(UH)) -DHAVE_CONFIG -DUNIX $(HAIKUOPT) -I/boot/system/non-packaged/develop/headers/yab
GPP = g++
GPP_OPT = $(DBG) $(OPT) -I. -DHAVE_CONFIG -DUNIX $(HAIKUOPT) -I/boot/system/non-packaged/develop/headers/yab
yab: YabMain.o main.o flex.o
$(GPP) $(GPP_OPT) -o $(TARGET) YabMain.o main.o flex.o $(LIBPATH) $(LIB)
YabMain.o: YabMain.cpp
$(GPP) $(GPP_OPT) -c YabMain.cpp -o YabMain.o
flex.o: flex.c
$(GCC) $(GCC_OPT) -c flex.c -o flex.o
main.o: main.c
$(GCC) $(GCC_OPT) -c main.c -o main.o
clean:
rm -f core *.o column/*.o yabasic.output