.POSIX: CFLAGS = -O 1 LDFLAGS = OUTNAME = libfemtokit.a TESTFILE = hello.c # All object files are listed here OBJS = # Add platform-dependent object files in separate variables (e.g. OBJS_LINUX) # and then, when running the make file, make sure to concatenate the appropriate # variable (e.g. OBJS = $(OBJS) $(OBJS_LINUX) ). all: $(OBJS) ar -rs $(OUTNAME) *.o clean: -rm test *.o *.a install: all mv -f $(OUTNAME) /usr/lib test: all c99 -l libfemtokit.a -o test test/$(TESTFILE) .c.o: c99 -c $(CFLAGS) -o $@ $<