#******************************************************************* # ORTCAN Project - Makefile for Virtual CAN Api library compilation # # (C) Copyright 2002 by Pavel Pisa # # The ORTCAN Project is distributed under the # Library Gnu General Public Licence. # See file COPYING for details. # #******************************************************************* all : default # Select compiler CC=gcc CXX=g++ LNK=$(CC) # Basic compilation flags CFLAGS += -Wall -Wstrict-prototypes #CFLAGS += -O2 CFLAGS += -I./ CFLAGS += -g CXXFLAGS = $(CFLAGS) LNKFLAGS = dep: $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c *.c $(MORE_C_FILES) > depend depend: @touch depend clean: rm -f depend *.o *~ *.a *.so *.so.* rdln default : rdln rdln: rdln.o cfstring.o $(LNK) $(LNKFLAGS) $^ -lncurses -lhistory -lreadline -lutil -o $@ rdln.o: rdln.c cfstring.o: cfstring.c -include depend