Commit 56b87897 authored by charras's avatar charras

delete "old" makefiles. Use CMakefiles only

parent 13a1c6be
## Makefile for 3d-viewer.a ( wxGTK - LINUX )
include ../libs.linux
# Compiler flags.
CPPFLAGS += -DPCBNEW -I../pcbnew -I ../include -I../common
TARGET = 3d-viewer
FINAL = 1
all: $(TARGET).a
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
include makefile.include
-include *.d
$(TARGET).a: $(OBJECTS3D) makefile.gtk makefile.include
rm -f $@
ar -rv $@ $(OBJECTS3D)
ranlib $@
install:$(TARGET).a
clean:
rm -f *.o *.exe *.res *.map *.d
rm -f $(TARGET).a
EXTRALIBS =
EXTRACPPFLAGS= -I./ -I../include -I../common -I../polygon -I../pcbnew
CPPFLAGS += $(EXTRACPPFLAGS)
OBJECTS3D = 3d_frame.o 3d_read_mesh.o 3d_canvas.o trackball.o 3d_aux.o\
3d_draw.o 3d_toolbar.o 3d_class.o
3d_class.o: 3d_class.cpp 3d_struct.h 3d_viewer.h
3d_read_mesh.o: 3d_read_mesh.cpp 3d_struct.h 3d_viewer.h
3d_frame.o: 3d_frame.cpp 3d_viewer.h
3d_canvas.o: 3d_canvas.cpp 3d_viewer.h
3d_aux.o: 3d_aux.cpp 3d_viewer.h
3d_draw.o: 3d_draw.cpp 3d_viewer.h 3d_struct.h
3d_toolbar.o: 3d_toolbar.cpp 3d_viewer.h
WXDIR = $(WXWIN)
TARGET=3d-viewer
DLLSUFF=.dll
include ../libs.win
DLLGEN=dllwrap --export-all --output-def $(TARGET).def --implib lib$(TARGET).a --driver-name c++
all: $(TARGET).a
include makefile.include
$(TARGET).a: $(OBJECTS3D)
ar ruv $@ $(OBJECTS3D)
ranlib $@
clean :
rm -f *.o
rm -f *.bak
rm -f $(TARGET).a
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment