Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 710 Bytes
APP=translate.exe
all: $(APP)
%.o:%.c
clang -c $<
%.o:%.swift
swiftc -Xcc -D_VA_LIST -I. -c $< -import-objc-header bridgingHeader.h
$(APP): libtranslator.so translator.swiftmodule jsonparse.o main.o
swiftc -o $(APP) jsonparse.o main.o -L. -ltranslator -lcurl -ljson-c -lswiftGlibc -lFoundation
libtranslator.so: translator.o
swiftc -Xcc -D_VA_LIST -emit-library translator.swift -module-name translator -import-objc-header bridgingHeader.h
gold -shared -o libtranslator.so translator.o
translator.swiftmodule: libtranslator.so
swiftc -Xcc -D_VA_LIST -emit-module -module-name translator translator.swift -import-objc-header bridgingHeader.h
clean:
rm -rf *.o *.swiftmodule *.swiftdoc *.so $(APP)
You can’t perform that action at this time.