2007-05-06 16:03:28 +00:00
|
|
|
## Makefile for PCBNEW et wxGTK
|
|
|
|
CC = gcc
|
|
|
|
LD = gcc
|
2007-06-12 15:42:10 +00:00
|
|
|
#DEBUG = 1
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
# Compiler flags.
|
2007-06-11 21:21:00 +00:00
|
|
|
ifdef DEBUG
|
|
|
|
CPPFLAGS = -Wall -g `wx-config --cxxflags`
|
|
|
|
LDFLAGS = -g
|
|
|
|
else
|
2007-05-06 16:03:28 +00:00
|
|
|
CPPFLAGS = -Wall -O2 `wx-config --cxxflags`
|
2007-06-12 15:42:10 +00:00
|
|
|
LDFLAGS = -s
|
2007-06-11 21:21:00 +00:00
|
|
|
endif
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
include ../libs.linux
|
|
|
|
|
|
|
|
TARGET = pcbnew
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
include makefile.include
|
|
|
|
|
|
|
|
CPPFLAGS += $(EXTRACPPFLAGS)
|
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) makefile.gtk makefile.include $(LIBVIEWER3D) $(EXTRALIBS) ../libs.linux
|
|
|
|
$(LD) $(LDFLAGS) $(OBJECTS) $(LIBVIEWER3D) $(LIBS_WITH_GL)\
|
2007-06-05 12:10:51 +00:00
|
|
|
-o $(TARGET)
|
|
|
|
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
install: $(TARGET)
|
2007-05-06 16:03:28 +00:00
|
|
|
cp $(TARGET) $(KICAD_BIN)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f *.map
|
|
|
|
rm -f $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
|