makefile.include 3.69 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# makefile pour cvpcb (mingw)
OBJSUFF = o

EXTRACPPFLAGS += -DCVPCB -fno-strict-aliasing -I./ -I../cvpcb -I../include -Ibitmaps -I../pcbnew -I../3d-viewer
EXTRALIBS = ../common/common.a

LIBVIEWER3D = ../3d-viewer/3d-viewer.a

# DEPEND = cvpcb.h ../include/pcbstruct.h

OBJECTS = $(TARGET).o \
			class_cvpcb.o\
            memoire.o \
			cvframe.o\
			listboxes.o\
			drawframe.o\
			class_pcb_text.o\
			class_cotation.o\
			class_mire.o\
			displayframe.o\
			drawpanel.o \
			init.o rdpcad.o \
			readschematicnetlist.o\
			viewlogi.o viewlnet.o \
			loadcmp.o savecmp.o \
			tool_cvpcb.o \
			writenetlistpcbnew.o\
			genequiv.o \
			ioascii.o \
			menucfg.o \
			cfg.o listlib.o \
			infospgm.o autosel.o \
			setvisu.o\
			dialog_display_options.o\
			zoom.o \
			tracemod.o \
 			classpcb.o \
			class_board.o \
			class_module.o \
			class_pad.o \
			class_text_mod.o \
			class_edge_mod.o \
			class_equipot.o \
			class_track.o\
45 46
			basepcbframe.o\
            collectors.o
47 48 49 50 51 52 53 54

cvpcb.o: cvpcb.cpp cvpcb.h $(DEPEND)

displayframe.o: displayframe.cpp $(DEPEND)

listboxes.o: listboxes.cpp $(DEPEND)

drawpanel.o: ../share/drawpanel.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
55
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../share/$*.cpp
56 57

drawframe.o: ../share/drawframe.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
58
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../share/$*.cpp
59 60 61 62 63 64 65 66

init.o: init.cpp $(DEPEND)

memoire.o: memoire.cpp $(DEPEND)

rdpcad.o: rdpcad.cpp $(DEPEND)

classpcb.o: ../pcbnew/classpcb.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
67
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
68 69

class_mire.o: ../pcbnew/class_mire.cpp ../pcbnew/class_mire.h $(COMMON)
dickelbeck's avatar
dickelbeck committed
70
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
71 72

class_cotation.o: ../pcbnew/class_cotation.cpp ../pcbnew/class_cotation.h $(COMMON)
dickelbeck's avatar
dickelbeck committed
73
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
74 75

class_pcb_text.o: ../pcbnew/class_pcb_text.cpp ../pcbnew/class_pcb_text.h $(COMMON)
dickelbeck's avatar
dickelbeck committed
76
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
77 78

class_board.o: ../pcbnew/class_board.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
79
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
80 81

class_track.o: ../pcbnew/class_track.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
82
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
83 84

class_pad.o: ../pcbnew/class_pad.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
85
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
86 87

class_module.o: ../pcbnew/class_module.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
88
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
89 90

class_text_mod.o: ../pcbnew/class_text_mod.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
91
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
92 93

class_edge_mod.o: ../pcbnew/class_edge_mod.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
94
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
95 96

class_equipot.o: ../pcbnew/class_equipot.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
97
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
98 99

basepcbframe.o: ../pcbnew/basepcbframe.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
100
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
101

102
collectors.o: ../pcbnew/collectors.cpp $(COMMON)
dickelbeck's avatar
dickelbeck committed
103 104
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp

105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
readschematicnetlist.o: readschematicnetlist.cpp $(DEPEND)

viewlogi.o: viewlogi.cpp $(DEPEND)

viewlnet.o: viewlnet.cpp $(DEPEND)

loadcmp.o: loadcmp.cpp $(DEPEND)

savecmp.o: savecmp.cpp $(DEPEND)

writenetlistpcbnew.o: writenetlistpcbnew.cpp $(DEPEND)

genequiv.o: genequiv.cpp $(DEPEND)

ioascii.o: ../pcbnew/ioascii.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
120
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
121 122 123 124 125 126 127 128

listlib.o: listlib.cpp $(DEPEND)

cfg.o: cfg.cpp cfg.h $(DEPEND)

menucfg.o: menucfg.cpp dialog_cvpcb_config.cpp dialog_cvpcb_config.h $(DEPEND)

infospgm.o: ../share/infospgm.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
129
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../share/$*.cpp
130 131 132 133 134 135

autosel.o: autosel.cpp $(DEPEND)

setvisu.o: setvisu.cpp $(DEPEND)

zoom.o: ../share/zoom.cpp $(DEPEND)
dickelbeck's avatar
dickelbeck committed
136
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../share/$*.cpp
137 138

tracemod.o: ../pcbnew/tracemod.cpp ../include/gr_basic.h $(DEPEND)
dickelbeck's avatar
dickelbeck committed
139
	$(CXX) -c $(EDACPPFLAGS) -o $@ ../pcbnew/$*.cpp
140 141 142

dialog_display_options.o: dialog_display_options.cpp dialog_display_options.h $(DEPEND)