Skip to content
Snippets Groups Projects
Commit 80c2dd1d authored by Jake Drahos's avatar Jake Drahos
Browse files

Added frontend library

parent 9cb74172
No related branches found
No related tags found
No related merge requests found
......@@ -34,13 +34,16 @@ FECOBJECTS = $(FECSOURCES:$(FESRCDIR)/%.c=$(OBJDIR)/%.o)
OBJECTS= $(CLIOBJECTS) $(BECOBJECTS) $(BECPPOBJECTS) $(FECOBJECTS)
# Default target
all: logs objdir backend cli $(SYMLINKS)
all: logs objdir backend cli $(SYMLINKS) frontend.a
$(SYMLINKS): $(CLIBINARY)
$(foreach symlink, $(SYMLINKS), ln -s $(CLIBINARY) $(symlink);)
vrpn: vrpn/build
frontend.a: $(FECOBJECTS)
ar rvs frontend.a $(wildcard $(OBJDIR)/frontend_*.o)
cli: $(CLIOBJECTS) $(FECOBJECTS)
$(GCC) $(CFLAGS) $^ -o $(CLIBINARY) $(INCLUDES) $(LIBS)
......
......@@ -2,6 +2,10 @@
#define __FRONTEND_COMMON_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
struct backend_conn;
/* Start connection to quad */
......@@ -19,4 +23,8 @@ char * ucart_backendGetline(struct backend_conn * conn);
/* Write a line to the backend */
int ucart_backendWrite(struct backend_conn * backend, const char * line);
#endif /* __FRONTEND_COMMON_H */
\ No newline at end of file
#ifdef __cplusplus
}
#endif
#endif /* __FRONTEND_COMMON_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment