makefile.gtk 817 Bytes
Newer Older
plyatov's avatar
plyatov committed
1 2 3 4 5 6
# File:		makefile for eeschema, mingw

#used only to define (KICAD_BIN) :
include ../../libs.linux

# Use static link for libsupc++ (locate libstdc++.a and copy it in kicad_dev/syslibs)
7
ifeq ($(KICAD_STATIC_LINK), 1)
plyatov's avatar
plyatov committed
8 9 10 11 12 13 14 15 16 17
#define path for a copy of libstdc++.a or/and libsupc++.a:
LIBSTDC = ../../syslibs/libstdc++.a
else
# Or Use static link for libsupc++ or libstdc++
LIBSTDC = -lstdc++
endif


all: netlist_form_pads-pcb

18 19 20 21 22
deps:
	$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null

-include *.d

plyatov's avatar
plyatov committed
23 24 25
netlist_form_pads-pcb: netlist_form_pads-pcb.cpp makefile.gtk
	gcc -D__UNIX__  -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC)

26
install: netlist_form_pads-pcb
27 28
	mkdir -p $(KICAD_PLUGINS)
	cp netlist_form_pads-pcb $(KICAD_PLUGINS)
plyatov's avatar
plyatov committed
29 30 31

clean :
	rm -f netlist_form_pads-pcb
32
	rm -f *.o *.rsc *.res *.exe *.bak *.d
plyatov's avatar
plyatov committed
33