This commit is contained in:
Nikita Ivanov 2022-06-09 09:56:37 +05:00
parent 3a47728b7e
commit 3cfc0b2611
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
4 changed files with 9 additions and 6 deletions

View File

@ -7,8 +7,11 @@ DEP := $(OBJ:.o=.d)
PRE := $(wildcard prev/*.sh)
GEN := gen/prev/scripts.h gen/server.h gen/helpers.h
CFLAGS += -I. -Os -MD -Wall -Wextra -Wno-unused-parameter
LDFLAGS += -lmagic -lcrypto
O := -Os
LIBS := magic crypto
CFLAGS += $(O) -MD -Wall -Wextra -Wno-unused-parameter
LDFLAGS += $(LIBS:%=-l%)
all: ctpv
@ -49,7 +52,7 @@ gen/helpers.h: helpers.sh embed/embed
embed/embed -p scr_ helpers.sh > $@
embed/embed: make_embed
@:
@ # do nothing
-include $(DEP)

View File

@ -14,7 +14,7 @@
#include "config.h"
#include "server.h"
#include "preview.h"
#include "previews.h"
#include "../previews.h"
const char any_type[] = ANY_TYPE;

View File

@ -9,7 +9,7 @@
#include "error.h"
#include "utils.h"
#include "shell.h"
#include "gen/server.h"
#include "../gen/server.h"
#define FIFO_FILENAME_SIZE 256

View File

@ -2,7 +2,7 @@
#include "shell.h"
#include "error.h"
#include "gen/helpers.h"
#include "../gen/helpers.h"
/*
* Returns string with helpers.sh prepended