bygreencn / fanntool

Automatically exported from code.google.com/p/fanntool
0 stars 0 forks source link

Makefile for Ubuntu 14.04 #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In case you would like to include it in the distribution:

ODIR = obj
FLAGS = -Wno-write-strings -fpermissive -Wno-format-security -Wno-format 
-I/usr/local/include
OBJ = $(ODIR)/DataProcess.o $(ODIR)/fl_ext_file_chooser.o $(ODIR)/Fl_PlotXY.o 
$(ODIR)/main.o $(ODIR)/Rotated.o
LIBRARIES = -lfltk -lXext -lXpm -lfann -lm -lstdc++ -Wl,-Bsymbolic-functions 
-lfltk -lX11 -lfltk_images

$(ODIR)/%.o: %.cpp
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.cxx
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.C
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.c
        gcc -c -o $@ $(FLAGS) $< -I.
FannTool: $(OBJ)
        gcc -o $@ $^ -I. $(LIBRARIES)
clean:
        rm $(ODIR)/*.o

Original issue reported on code.google.com by pwbec...@hotmail.com on 5 Aug 2014 at 8:02