Commit a75d8389 authored by Michel Roelofs's avatar Michel Roelofs
Browse files

Have "common" component, used for both console and controller

This "common" component provides the "utils", "trace", and two common
include files: dt_port_numbers and dynarg
parent caeb9896
# Some make rules to make output pretty....
# default ARFLAGS also has 'v', but we don't want it to be verbose.
ARFLAGS= -r
# make sure libs from /usr/local/lib are found
VPATH= /lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib
%.o : %.c
@echo " CC $<"
@$(CC) -MD $(CFLAGS) -c $<
%: %.o
@echo " LD $@"
@$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) $($@_LDFLAGS) -o $@
(%): %
@echo " AR $< in $@"
@$(AR) $(ARFLAGS) $@ $<
%.tab.c %.tab.h: %.y
@echo "BISON $<"
@bison -d $<
%.yy.h: %.l %.tab.h
@echo " FLEX $<"
@flex --header-file=$*.yy.h $<
%.yy.c: %.l %.tab.h
@echo " FLEX $<"
@flex -o $@ $<
# il2c: instruction list 2 c 'compiler'
%.c %.h: %.il
@echo " IL2C $<"
@$(IL2C) $<
# dot -> pdf
%.pdf: %.dot
@echo " DOT $<"
@dot $< -o $@ -Tpdf
-include $(SRCS:.c=.d)
......@@ -20,7 +20,7 @@
*/
#include "trace.h"
#include "tcp_connect.h"
#include "../utils/tcp_connect.h"
#include <stdio.h>
#include <string.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment