Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
fixed Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lynix committed Mar 4, 2015
1 parent fa07903 commit 5211303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
@@ -1,15 +1,15 @@
CC = gcc
CFLAGS = -Wall -pedantic -I /usr/include -g
CFLAGS = -O2 -Wall -pedantic -std=gnu99 -I /usr/include -g
PREFIX ?= /usr
INSTALLDIR = $(DESTDIR)$(PREFIX)

all : aerocli aerod

aerocli : aerocli.o libaquaero.o
$(CC) $(CFLAGS) -lusb-1.0 $(LDFLAGS) -o $@ $^
$(CC) $(CFLAGS) -o $@ $^ -lusb-1.0 $(LDFLAGS)

aerod : aerod.o libaquaero.o
$(CC) $(CFLAGS) -lusb-1.0 -lpthread $(LDFLAGS) -o $@ $^
$(CC) $(CFLAGS) -o $@ $^ -lusb-1.0 -lpthread $(LDFLAGS)

aerocli.o : aerocli.c aerocli.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
Expand Down

0 comments on commit 5211303

Please sign in to comment.