update makefile

This commit is contained in:
Dominik Demuth 2023-04-11 19:06:35 +02:00
parent ead30d127a
commit 3e513a1231
2 changed files with 11 additions and 6 deletions

View File

@ -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

Binary file not shown.