update makefile
This commit is contained in:
parent
ead30d127a
commit
3e513a1231
15
Makefile
15
Makefile
@ -4,11 +4,6 @@
|
|||||||
PYUIC = pyuic5
|
PYUIC = pyuic5
|
||||||
# PYRCC = pyrcc5
|
# PYRCC = pyrcc5
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CFLAGS = -O2 -fPIC
|
|
||||||
LDFLAGs = -shared
|
|
||||||
|
|
||||||
|
|
||||||
#Directory with ui files
|
#Directory with ui files
|
||||||
RESOURCE_DIR = src/resources/_ui
|
RESOURCE_DIR = src/resources/_ui
|
||||||
|
|
||||||
@ -22,12 +17,22 @@ PYQT_UI = $(UI_FILES:%.ui=$(PYQT_DIR)/%.py)
|
|||||||
SVG_FILES = $(foreach dir, $(RCC_DIR), $(notdir $(wildcard $(dir)/*.svg)))
|
SVG_FILES = $(foreach dir, $(RCC_DIR), $(notdir $(wildcard $(dir)/*.svg)))
|
||||||
PNG_FILES = $(SVG_FILES:%.svg=$(RCC_DIR)/%.png)
|
PNG_FILES = $(SVG_FILES:%.svg=$(RCC_DIR)/%.png)
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
CFLAGS = -O2 -fPIC
|
||||||
|
LDFLAGS = -shared
|
||||||
|
|
||||||
|
C_DIR = src/nmreval/clib
|
||||||
|
|
||||||
all : ui
|
all : ui
|
||||||
|
|
||||||
ui : $(PYQT_UI)
|
ui : $(PYQT_UI)
|
||||||
|
|
||||||
rcc : $(PNG_FILES)
|
rcc : $(PNG_FILES)
|
||||||
|
|
||||||
|
# only one C file at the moment
|
||||||
|
compile : $(C_DIR)/integrate.c
|
||||||
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $(C_DIR)/integrate.so $<
|
||||||
|
|
||||||
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.ui
|
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.ui
|
||||||
$(PYUIC) $< -o $@
|
$(PYUIC) $< -o $@
|
||||||
|
|
||||||
|
BIN
src/nmreval/clib/integrate.so
Executable file
BIN
src/nmreval/clib/integrate.so
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user