diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-02 19:44:39 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-02 19:44:39 +0100 |
commit | 382a40466a9339b8153180303ae799ed9fd7c868 (patch) | |
tree | f50514548417f291e2f2c9051971d8c8ce9d1316 /Makefile | |
parent | Broke read_vcalendar of into own file. (diff) | |
download | calp-382a40466a9339b8153180303ae799ed9fd7c868.tar.gz calp-382a40466a9339b8153180303ae799ed9fd7c868.tar.xz |
Start work on a scheme interface.
Diffstat (limited to '')
-rw-r--r-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -5,9 +5,12 @@ LEX := flex DIRS := obj -CFLAGS = -std=gnu99 -Wall -Wextra -pedantic -DSAFE_STR -DSAFE_HASH -ggdb -#LFLAGS = -#LDFLAGS = +CFLAGS = -std=gnu99 -Wall -Wextra -pedantic \ + -DSAFE_STR -DSAFE_HASH -ggdb \ + -fPIC \ + $(shell guile-config compile) +# LFLAGS = +LDFLAGS = -fPIC $(shell guile-config link) C_FILES = $(wildcard *.c) INC_FILES = $(wildcard *.inc) @@ -16,14 +19,18 @@ H_FILES = $(wildcard *.h) $(shell mkdir -p $(DIRS)) -all: parse +all: parse libguile-calendar.so obj/%.o : %.c $(H_FILES) $(INC_FILES) $(CC) -c -o $@ $< ${CFLAGS} +libguile-calendar.so: $(O_FILES) + $(CC) -shared -o $@ $^ $(LDFLAGS) + parse: $(O_FILES) - $(CC) -o $@ $^ ${LDFLAGS} + $(CC) -o $@ $^ $(LDFLAGS) clean: -rm parse -rm obj/*.o + -rm *.so |