#******************************************************************* # 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 default : readcan sendcan # Select compiler CC=gcc # Basic compilation flags CFLAGS += -Wall -Wstrict-prototypes CFLAGS += -O2 CFLAGS += -I../include CFLAGS += -ggdb # CFLAGS for the VCA library # note: some macro expansions require at least -O LCFLAGS= $(CFLAGS) LCFLAGS+= $(CPUFLAGS) LDFLAGS += -L../lib LOADLIBES= -lvca # uncomment the next line if you want a shared library # LIB_SHARED = 1 LIB_OBJS = OBJS = sendcan.o readcan.o LIBVCA = ../libvca/libvca.a .SUFFIXES: .i .s %.c : %.i $(CC) -E $(CFLAGS) $< >$@ %.c : %.s $(CC) -S $(CFLAGS) $< dep: $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) > depend depend: @touch depend clean : rm -f depend *.o *.lo *~ *.a *.so *.so.* readcan sendcan -include depend