################################################## ## Bakalarska praca ## ## Meno studenta: Tomas Lukac ## ## Veduci BP: prof. Ing. Milos Drutarovsky CSc. ## ## Skola: KEMT FEI TUKE ## ## Datum poslednej upravy: 15.4.2020 ## ################################################## #prekladac CC = gcc #prepinace pre prekladac CFLAGS = -Wcpp -Werror -I./../../wolfssl/ SOURCES = $(wildcard ../../kniznica/*.c) \ $(wildcard *.c) OBJECTS = $(SOURCES:.c=.o) EXECUTABLE = klient ifeq ($(OS), Windows_NT) CLEAN += del *.o *.exe ifeq ($(PROCESSOR_ARCHITECTURE), AMD64) ARCH += -m64 CFLAGS += $(ARCH) LDFLAGS += -L./../../wolfssl/64bit_kniznice/ -lwolfssl -lws2_32 endif ifeq ($(PROCESSOR_ARCHITECTURE), x86) ARCH += -m32 CFLAGS += $(ARCH) LDFLAGS += -L./../../wolfssl/32bit_kniznice/ -lwolfssl -lws2_32 endif else UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), Linux) LDFLAGS += -lwolfssl CLEAN += rm *.o $(EXECUTABLE) endif endif all: $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) clean: $(CLEAN)