Commit 6720dfdc authored by Jeremy Soller's avatar Jeremy Soller

Add makefile and include osal and types

parent 9fbd1537
Pipeline #2153 failed with stages
in 46 seconds
SRC=$(wildcard *.c)
OBJ=$(patsubst %.c,%.o,$(SRC))
all: libpthread.a
libpthread.a: $(OBJ)
$(AR) -rcs $@ $(OBJ)
%.o: %.c
$(CC) $(CFLAGS) -I . -c $< -o $@
#ifndef _OS_SUPPORT_H_
#define _OS_SUPPORT_H_
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#include <sys/types.h>
// XXX
typedef unsigned long pte_osThreadHandle;
typedef unsigned long pte_osSemaphoreHandle;
typedef int32_t* pte_osMutexHandle;
#include <pte_generic_osal.h>
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // _OS_SUPPORT_H
#ifndef PTE_TYPES_H
#define PTE_TYPES_H
#include <errno.h>
#include <sys/types.h>
#include <sys/timeb.h>
#endif /* PTE_TYPES_H */
Markdown is supported
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