LIBS=-lm

OS=$(shell uname)

ifeq ($(OS), Linux)
LIBS += -lrt
endif

all: fixscript.o
	gcc -g -Wall -O3 -o test test.c fixscript.o $(LIBS)
	gcc -g -Wall -O3 -o fixembed fixembed.c $(LIBS)

fixscript.o: fixscript.c fixscript.h
	gcc -g -Wall -O3 -o fixscript.o -c fixscript.c
