Skip to content
Snippets Groups Projects
Commit c79349bb authored by dawehr's avatar dawehr
Browse files

Updated gen_diagram Makefile properly.

parent 6598f201
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,9 @@ static double exec_input_vals[GRAPH_MAX_INPUTS];
// Macro functions for setting and clearing single bits in int array
// From http://www.mathcs.emory.edu/~cheung/Courses/255/Syllabus/1-C-intro/bit-array.html
#define setBit(A,k) ( A[(k / (8*sizeof(&A)))] |= (1 << (k % (8*sizeof(&A)))) )
#define clearBit(A,k) ( A[(k / (8*sizeof(&A)))] &= ~(1 << (k % (8*sizeof(&A)))) )
#define testBit(A,k) ( A[(k / (8*sizeof(&A)))] & (1 << (k % (8*sizeof(&A)))) )
#define setBit(A,k) ( A[(k / (8*sizeof(*A)))] |= (1 << (k % (8*sizeof(*A)))) )
#define clearBit(A,k) ( A[(k / (8*sizeof(*A)))] &= ~(1 << (k % (8*sizeof(*A)))) )
#define testBit(A,k) ( A[(k / (8*sizeof(*A)))] & (1 << (k % (8*sizeof(*A)))) )
struct computation_graph *create_graph() {
struct computation_graph *the_graph = malloc(sizeof(struct computation_graph));
......
TOP=../..
NAME = gen_diagram
REQLIBS = -lquad_app, -lgraph_blocks, -lcomputation_graph
REQLIBS = -lquad_app -lgraph_blocks -lcomputation_graph -lm
include $(TOP)/library.mk
\ No newline at end of file
include $(TOP)/executable.mk
\ No newline at end of file
#include <stdio.h>
#include "computation_graph.h"
#include "control_algorithm.h"
int main() {
......
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